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
    Modifier and Type
    Field
    Description
    private final ComponentLog
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Message Acknowledgment Encoder with required arguments
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class io.netty.handler.codec.MessageToByteEncoder

    acceptOutboundMessage, allocateBuffer, isPreferDirect, write

    Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter

    bind, close, connect, deregister, disconnect, flush, read

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler

    exceptionCaught, handlerAdded, handlerRemoved
  • Field Details

  • Constructor Details

    • MessageAckEncoder

      public MessageAckEncoder(ComponentLog log)
      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:
      encode in class io.netty.handler.codec.MessageToByteEncoder<MessageAck>
      Parameters:
      context - Channel Handler Context
      messageAck - Message Acknowledgement containing Sequence Number
      buffer - Byte Buffer