| Modifier and Type | Class and Description |
|---|---|
| public static class | RecvByteBufAllocator.
Deprecated
as a consequence of A RecvByteBufAllocator.Handle being deprecated.
Handle which delegates all call to some other Handle.
|
| public static interface | RecvByteBufAllocator.
Deprecated
as a consequence of
RecvByteBufAllocator.Handle being deprecated.
|
| public static interface | RecvByteBufAllocator.
Deprecated
Use
ExtendedHandle.
|
| Modifier and Type | Method and Description |
|---|---|
| public RecvByteBufAllocator. | newHandle()
Deprecated
as a consequence of
Creates a new handle.
RecvByteBufAllocator.Handle being deprecated.
|
| newHandle | back to summary |
|---|---|
| public RecvByteBufAllocator. Deprecated as a consequence of Creates a new handle. The handle provides the actual operations and keeps the internal information which is required for predicting an optimal buffer capacity. | |
Deprecated
as a consequence of RecvByteBufAllocator.Handle being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final RecvByteBufAllocator. | delegate
Deprecated
as a consequence of
RecvByteBufAllocator.Handle being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | DelegatingHandle(RecvByteBufAllocator.
Deprecated
as a consequence of
RecvByteBufAllocator.Handle being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | allocate(ByteBufAllocator alloc)
Implements io. |
| public int | attemptedBytesRead()
Implements io. |
| public void | attemptedBytesRead(int
How many bytes the read operation will (or did) attempt to read. bytes)Implements io. |
| public boolean | continueReading()
Implements io. |
| protected final RecvByteBufAllocator. | Returns: theHandle which all methods will be delegated to.
Deprecated
as a consequence of
Get the RecvByteBufAllocator.Handle being deprecated.
Handle which all methods will be delegated to.
|
| public int | guess()
Implements io. allocate(ByteBufAllocator) except that it does not allocate anything but just tells the
capacity.
|
| public void | incMessagesRead(int
The amount to increment by. numMessages)Implements io. |
| 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().Implements io. |
| public int | lastBytesRead()
Implements io. |
| public void | readComplete()
Implements io. |
| public void | reset(ChannelConfig
The channel configuration which may impact this object's behavior. config)Implements io. |
| delegate | back to summary |
|---|---|
| private final RecvByteBufAllocator. Deprecated as a consequence of | |
| DelegatingHandle | back to summary |
|---|---|
| public DelegatingHandle(RecvByteBufAllocator. Deprecated as a consequence of | |
| allocate | back to summary |
|---|---|
| public ByteBuf allocate(ByteBufAllocator alloc) 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.
| |
| attemptedBytesRead | back to summary |
|---|---|
| public int attemptedBytesRead() Implements io. Doc from io. Get how many bytes the read operation will (or did) attempt to read.
| |
| attemptedBytesRead | back to summary |
|---|---|
| public void attemptedBytesRead(int bytes) Implements io. Doc from io. Set how many bytes the read operation will (or did) attempt to read.
| |
| continueReading | back to summary |
|---|---|
| public boolean continueReading() Implements io. Doc from io. Determine if the current read loop should continue.
| |
| delegate | back to summary |
|---|---|
| protected final RecvByteBufAllocator. Deprecated as a consequence of Get the
| |
| guess | back to summary |
|---|---|
| public int guess() Implements io. Doc from io. Similar to
| |
| incMessagesRead | back to summary |
|---|---|
| public void incMessagesRead(int numMessages) Implements io. Doc from io. Increment the number of messages that have been read for the current read loop.
| |
| lastBytesRead | back to summary |
|---|---|
| public void lastBytesRead(int bytes) 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.
| |
| lastBytesRead | back to summary |
|---|---|
| public int lastBytesRead() Implements io. Doc from io. Get the amount of bytes for the previous read operation.
| |
| readComplete | back to summary |
|---|---|
| public void readComplete() Implements io. Doc from io. The read has completed.
| |
| reset | back to summary |
|---|---|
| public void reset(ChannelConfig config) 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
| |
Deprecated
as a consequence of RecvByteBufAllocator.Handle being deprecated. See corresponding docs for further information.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | continueReading(UncheckedBooleanSupplier
A supplier that determines if there maybe more data to read. maybeMoreDataSupplier)Same as |
| continueReading | back to summary |
|---|---|
| public boolean continueReading(UncheckedBooleanSupplier maybeMoreDataSupplier) Same as
| |
Deprecated
Use ExtendedHandle.
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | allocate(ByteBufAllocator alloc)
Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space. |
| public void | attemptedBytesRead(int
How many bytes the read operation will (or did) attempt to read. bytes)Set how many bytes the read operation will (or did) attempt to read. |
| public int | Returns: How many bytes the read operation will (or did) attempt to read.Get how many bytes the read operation will (or did) attempt to read. |
| public boolean | Returns: true if the read loop should continue reading. false if the read loop is complete.Determine if the current read loop should continue. |
| public int | guess()
Similar to |
| public void | incMessagesRead(int
The amount to increment by. numMessages)Increment the number of messages that have been read for the current read loop. |
| 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().Set the bytes that have been read for the last read operation. |
| public int | Returns: The amount of bytes for the previous read operation.Get the amount of bytes for the previous read operation. |
| public void | |
| public void | reset(ChannelConfig
The channel configuration which may impact this object's behavior. config)Reset any counters that have accumulated and recommend how many messages/bytes should be read for the next read loop. |
| allocate | back to summary |
|---|---|
| public ByteBuf allocate(ByteBufAllocator alloc) Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space. | |
| attemptedBytesRead | back to summary |
|---|---|
| public void attemptedBytesRead(int bytes) Set how many bytes the read operation will (or did) attempt to read.
| |
| attemptedBytesRead | back to summary |
|---|---|
| public int attemptedBytesRead() Get how many bytes the read operation will (or did) attempt to read.
| |
| continueReading | back to summary |
|---|---|
| public boolean continueReading() Determine if the current read loop should continue.
| |
| guess | back to summary |
|---|---|
| public int guess() Similar to | |
| incMessagesRead | back to summary |
|---|---|
| public void incMessagesRead(int numMessages) Increment the number of messages that have been read for the current read loop.
| |
| lastBytesRead | back to summary |
|---|---|
| public void lastBytesRead(int bytes) 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.
| |
| lastBytesRead | back to summary |
|---|---|
| public int lastBytesRead() Get the amount of bytes for the previous read operation.
| |
| readComplete | back to summary |
|---|---|
| public void readComplete() The read has completed. | |
| reset | back to summary |
|---|---|
| public void reset(ChannelConfig config) 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
| |