@ChannelHandler.Sharable public class BatchChannelInboundHandler extends io.netty.channel.SimpleChannelInboundHandler<Batch>
| Modifier and Type | Field and Description |
|---|---|
private ComponentLog |
log |
private BlockingQueue<BatchMessage> |
messages |
| Constructor and Description |
|---|
BatchChannelInboundHandler(ComponentLog log,
BlockingQueue<BatchMessage> messages)
Batch Channel Inbound Handler with required arguments
|
| Modifier and Type | Method and 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
|
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate final ComponentLog log
private final BlockingQueue<BatchMessage> messages
public BatchChannelInboundHandler(ComponentLog log, BlockingQueue<BatchMessage> messages)
log - Processor Logmessages - Queue of messagesprotected void channelRead0(io.netty.channel.ChannelHandlerContext context,
Batch batch)
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<Batch>context - Channel Handler Contextbatch - Batch of messagesCopyright © 2022 Apache NiFi Project. All rights reserved.