public class FixedRecvByteBufAllocator extends java.lang.Object implements RecvByteBufAllocator
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 static class |
FixedRecvByteBufAllocator.HandleImpl |
RecvByteBufAllocator.Handle| Modifier and Type | Field and Description |
|---|---|
private RecvByteBufAllocator.Handle |
handle |
| Constructor and Description |
|---|
FixedRecvByteBufAllocator(int bufferSize)
Creates a new predictor that always returns the same prediction of
the specified buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
RecvByteBufAllocator.Handle |
newHandle()
Creates a new handle.
|
private final RecvByteBufAllocator.Handle handle
public FixedRecvByteBufAllocator(int bufferSize)
public RecvByteBufAllocator.Handle newHandle()
RecvByteBufAllocatornewHandle in interface RecvByteBufAllocator