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
FieldsModifier and TypeFieldDescriptionprivate final ComponentLogprivate final BlockingQueue<BatchMessage> -
Constructor Summary
ConstructorsConstructorDescriptionBatchChannelInboundHandler(ComponentLog log, BlockingQueue<BatchMessage> messages) Batch Channel Inbound Handler with required arguments -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelRead0(io.netty.channel.ChannelHandlerContext context, Batch batch) Channel Read processes a batch of messages and sends an acknowledgement for the last sequence numberMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, 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
handlerAdded, handlerRemoved
-
Field Details
-
log
-
messages
-
-
Constructor Details
-
BatchChannelInboundHandler
Batch Channel Inbound Handler with required arguments- Parameters:
log- Processor Logmessages- Queue of messages
-
-
Method Details
-
channelRead0
Channel Read processes a batch of messages and sends an acknowledgement for the last sequence number- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<Batch>- Parameters:
context- Channel Handler Contextbatch- Batch of messages
-