Class MessageAckEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<MessageAck>
org.apache.nifi.processors.beats.handler.MessageAckEncoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
@Sharable
public class MessageAckEncoder
extends io.netty.handler.codec.MessageToByteEncoder<MessageAck>
Beats Message Acknowledgement Encoder writes Protocol Version 2 ACK packets with a specified sequence number
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessage Acknowledgment Encoder with required arguments -
Method Summary
Modifier and TypeMethodDescriptionprotected voidencode(io.netty.channel.ChannelHandlerContext context, MessageAck messageAck, io.netty.buffer.ByteBuf buffer) Encode Message Acknowledgement to the buffer with Protocol Version 2 and ACK Frame TypeMethods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
log
-
-
Constructor Details
-
MessageAckEncoder
Message Acknowledgment Encoder with required arguments- Parameters:
log- Processor Log
-
-
Method Details
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext context, MessageAck messageAck, io.netty.buffer.ByteBuf buffer) Encode Message Acknowledgement to the buffer with Protocol Version 2 and ACK Frame Type- Specified by:
encodein classio.netty.handler.codec.MessageToByteEncoder<MessageAck>- Parameters:
context- Channel Handler ContextmessageAck- Message Acknowledgement containing Sequence Numberbuffer- Byte Buffer
-