public final class DatagramChannelReader extends AbstractChannelReader
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_UDP_PACKET_SIZE |
private boolean |
readSingleDatagram |
| Constructor and Description |
|---|
DatagramChannelReader(String id,
SelectionKey key,
BufferPool empties,
StreamConsumerFactory consumerFactory,
boolean readSingleDatagram) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
fillBuffer(SelectionKey key,
ByteBuffer buffer)
Will receive UDP data from channel and won't receive anything unless the
given buffer has enough space for at least one full max udp packet.
|
equals, getScheduledFuture, getSelectionKey, hashCode, isClosed, run, setScheduledFuture, toStringpublic static final int MAX_UDP_PACKET_SIZE
private final boolean readSingleDatagram
public DatagramChannelReader(String id, SelectionKey key, BufferPool empties, StreamConsumerFactory consumerFactory, boolean readSingleDatagram)
protected int fillBuffer(SelectionKey key, ByteBuffer buffer) throws IOException
fillBuffer in class AbstractChannelReaderkey - selection keybuffer - to fillIOException - if error filling buffer from channelCopyright © 2023 Apache NiFi Project. All rights reserved.