RecvByteBufAllocator that always yields the same buffer
size prediction. This predictor ignores the feed back from the I/O thread.
| Modifier and Type | Class and Description |
|---|---|
| private class | FixedRecvByteBufAllocator.
Deprecated
as a consequence of
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public | FixedRecvByteBufAllocator(int bufferSize)
Creates a new predictor that always returns the same prediction of the specified buffer size. |
| Modifier and Type | Method and Description |
|---|---|
| public RecvByteBufAllocator. | newHandle()
Implements io.
Deprecated
as a consequence of
Creates a new handle.
RecvByteBufAllocator.Handle being deprecated.
|
| public FixedRecvByteBufAllocator | respectMaybeMoreData(boolean
Overrides io. newHandle() will stop reading if we think there is no more data.
|
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| FixedRecvByteBufAllocator | back to summary |
|---|---|
| public FixedRecvByteBufAllocator(int bufferSize) Creates a new predictor that always returns the same prediction of the specified buffer size. | |
| newHandle | back to summary |
|---|---|
| public RecvByteBufAllocator. Implements io. Doc from io. 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.
| |
| respectMaybeMoreData | back to summary |
|---|---|
| public FixedRecvByteBufAllocator respectMaybeMoreData(boolean respectMaybeMoreData) Overrides io. Doc from io. Determine if future instances of
| |
Deprecated
as a consequence of DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | guess()
Implements io. allocate(ByteBufAllocator) except that it does not allocate anything but just tells the
capacity.
|
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| HandleImpl | back to summary |
|---|---|
| pack-priv HandleImpl(int bufferSize) | |
| guess | back to summary |
|---|---|
| public int guess() Implements io. Doc from io. Similar to
| |