Deprecated
as a consequence of RecvByteBufAllocator.DelegatingHandle and RecvByteBufAllocator.ExtendedHandle being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final UncheckedBooleanSupplier | |
| private long | |
| private boolean | |
| private final PreferredDirectByteBufAllocator | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | KQueueRecvByteAllocatorHandle(RecvByteBufAllocator.
Deprecated
as a consequence of
RecvByteBufAllocator.ExtendedHandle being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | allocate(ByteBufAllocator alloc)
Overrides io. Implements io. |
| public boolean | continueReading(UncheckedBooleanSupplier
A supplier that determines if there maybe more data to read. maybeMoreDataSupplier)Implements io. Handle#continueReading() except "more data" is determined by the supplier parameter.
|
| public boolean | continueReading()
Overrides io. Implements io. |
| public int | guess()
Overrides io. Implements io. allocate(ByteBufAllocator) except that it does not allocate anything but just tells the
capacity.
|
| private int | |
| pack-priv boolean | |
| public void | lastBytesRead(int
The number of bytes from the previous read operation. This may be negative if an read error
occurs. If a negative value is seen it is expected to be return on the next call to
bytes)lastBytesRead(). A negative value will signal a termination condition enforced externally
to this class and is not required to be enforced in continueReading().Overrides io. Implements io. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public void | reset(ChannelConfig
The channel configuration which may impact this object's behavior. config)Overrides io. Implements io. |
| defaultMaybeMoreDataSupplier | back to summary |
|---|---|
| private final UncheckedBooleanSupplier defaultMaybeMoreDataSupplier | |
| numberBytesPending | back to summary |
|---|---|
| private long numberBytesPending | |
| overrideGuess | back to summary |
|---|---|
| private boolean overrideGuess | |
| preferredDirectByteBufAllocator | back to summary |
|---|---|
| private final PreferredDirectByteBufAllocator preferredDirectByteBufAllocator | |
| readEOF | back to summary |
|---|---|
| private boolean readEOF | |
| KQueueRecvByteAllocatorHandle | back to summary |
|---|---|
| pack-priv KQueueRecvByteAllocatorHandle(RecvByteBufAllocator. Deprecated as a consequence of | |
| allocate | back to summary |
|---|---|
| public ByteBuf allocate(ByteBufAllocator alloc) Overrides io. Implements io. Doc from io. Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.
| |
| continueReading | back to summary |
|---|---|
| public boolean continueReading(UncheckedBooleanSupplier maybeMoreDataSupplier) Implements io. Doc from io. Same as
| |
| continueReading | back to summary |
|---|---|
| public boolean continueReading() Overrides io. Implements io. Doc from io. Determine if the current read loop should continue.
| |
| guess | back to summary |
|---|---|
| public int guess() Overrides io. Implements io. Doc from io. Similar to
| |
| guess0 | back to summary |
|---|---|
| private int guess0() | |
| isReadEOF | back to summary |
|---|---|
| pack-priv boolean isReadEOF() | |
| lastBytesRead | back to summary |
|---|---|
| public void lastBytesRead(int bytes) Overrides io. Implements io. Doc from io. Set the bytes that have been read for the last read operation. This may be used to increment the number of bytes that have been read.
| |
| maybeMoreDataToRead | back to summary |
|---|---|
| pack-priv boolean maybeMoreDataToRead() | |
| numberBytesPending | back to summary |
|---|---|
| pack-priv void numberBytesPending(long numberBytesPending) | |
| readEOF | back to summary |
|---|---|
| pack-priv void readEOF() | |
| reset | back to summary |
|---|---|
| public void reset(ChannelConfig config) Overrides io. Implements io. Doc from io. Reset any counters that have accumulated and recommend how many messages/bytes should be read for the next read loop.
This may be used by
| |