public class BeatsFrameHandler<E extends Event<SocketChannel>> extends Object
| Modifier and Type | Field and Description |
|---|---|
private Charset |
charset |
private AsyncChannelDispatcher |
dispatcher |
private BeatsEncoder |
encoder |
private EventFactory<E> |
eventFactory |
private EventQueue<E> |
events |
static byte |
FRAME_ACK |
static byte |
FRAME_COMPRESSED |
static byte |
FRAME_DATA |
static byte |
FRAME_JSON |
static byte |
FRAME_WINDOWSIZE |
private SelectionKey |
key |
private ComponentLog |
logger |
| Constructor and Description |
|---|
BeatsFrameHandler(SelectionKey selectionKey,
Charset charset,
EventFactory<E> eventFactory,
BlockingQueue<E> events,
AsyncChannelDispatcher dispatcher,
ComponentLog logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(BeatsFrame frame,
ChannelResponder<SocketChannel> responder,
String sender) |
private final Charset charset
private final EventFactory<E extends Event<SocketChannel>> eventFactory
private final EventQueue<E extends Event<SocketChannel>> events
private final SelectionKey key
private final AsyncChannelDispatcher dispatcher
private final BeatsEncoder encoder
private final ComponentLog logger
public static final byte FRAME_WINDOWSIZE
public static final byte FRAME_DATA
public static final byte FRAME_COMPRESSED
public static final byte FRAME_ACK
public static final byte FRAME_JSON
public BeatsFrameHandler(SelectionKey selectionKey, Charset charset, EventFactory<E> eventFactory, BlockingQueue<E> events, AsyncChannelDispatcher dispatcher, ComponentLog logger)
public void handle(BeatsFrame frame, ChannelResponder<SocketChannel> responder, String sender) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2021 Apache NiFi Project. All rights reserved.