public class RELPFrameHandler<E extends Event<SocketChannel>> extends Object
Modifier and Type | Field and Description |
---|---|
private Charset |
charset |
(package private) static String |
CMD_CLOSE |
(package private) static String |
CMD_OPEN |
private AsyncChannelDispatcher |
dispatcher |
private RELPEncoder |
encoder |
private EventFactory<E> |
eventFactory |
private EventQueue<E> |
events |
private SelectionKey |
key |
private ComponentLog |
logger |
Constructor and Description |
---|
RELPFrameHandler(SelectionKey selectionKey,
Charset charset,
EventFactory<E> eventFactory,
BlockingQueue<E> events,
AsyncChannelDispatcher dispatcher,
ComponentLog logger) |
Modifier and Type | Method and Description |
---|---|
void |
handle(RELPFrame frame,
ChannelResponder<SocketChannel> responder,
String sender) |
static final String CMD_OPEN
static final String CMD_CLOSE
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 ComponentLog logger
private final RELPEncoder encoder
public RELPFrameHandler(SelectionKey selectionKey, Charset charset, EventFactory<E> eventFactory, BlockingQueue<E> events, AsyncChannelDispatcher dispatcher, ComponentLog logger)
public void handle(RELPFrame frame, ChannelResponder<SocketChannel> responder, String sender) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2020 Apache NiFi Project. All rights reserved.