public final class SocketChannelReader extends AbstractChannelReader
| Constructor and Description |
|---|
SocketChannelReader(String id,
SelectionKey key,
BufferPool empties,
StreamConsumerFactory consumerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
fillBuffer(SelectionKey key,
ByteBuffer buffer)
Receives TCP data from the socket channel for the given key.
|
equals, getScheduledFuture, getSelectionKey, hashCode, isClosed, run, setScheduledFuture, toStringpublic SocketChannelReader(String id, SelectionKey key, BufferPool empties, StreamConsumerFactory consumerFactory)
protected int fillBuffer(SelectionKey key, ByteBuffer buffer) throws IOException
fillBuffer in class AbstractChannelReaderkey - selection keybuffer - byte buffer to fillIOException - if error reading bytesCopyright © 2023 Apache NiFi Project. All rights reserved.