Class BatchChannelInboundHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Batch>
org.apache.nifi.processors.beats.handler.BatchChannelInboundHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Sharable public class BatchChannelInboundHandler extends io.netty.channel.SimpleChannelInboundHandler<Batch>
Batch Channel Inbound Handler processes a batch of messages and sends an acknowledgement for the last 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
    Batch Channel Inbound Handler with required arguments
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    channelRead0(io.netty.channel.ChannelHandlerContext context, Batch batch)
    Channel Read processes a batch of messages and sends an acknowledgement for the last sequence number

    Methods inherited from class io.netty.channel.SimpleChannelInboundHandler

    acceptInboundMessage, channelRead

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, 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

    handlerAdded, handlerRemoved
  • Field Details

  • Constructor Details

    • BatchChannelInboundHandler

      public BatchChannelInboundHandler(ComponentLog log, BlockingQueue<BatchMessage> messages)
      Batch Channel Inbound Handler with required arguments
      Parameters:
      log - Processor Log
      messages - Queue of messages
  • Method Details

    • channelRead0

      protected void channelRead0(io.netty.channel.ChannelHandlerContext context, Batch batch)
      Channel Read processes a batch of messages and sends an acknowledgement for the last sequence number
      Specified by:
      channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<Batch>
      Parameters:
      context - Channel Handler Context
      batch - Batch of messages