public class FixedRecvByteBufAllocator extends DefaultMaxMessagesRecvByteBufAllocator
RecvByteBufAllocator that always yields the same buffer
size prediction. This predictor ignores the feed back from the I/O thread.DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandleRecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.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.
|
maxMessagesPerRead, maxMessagesPerReadpublic FixedRecvByteBufAllocator(int bufferSize)
public RecvByteBufAllocator.Handle newHandle()
RecvByteBufAllocatorCopyright © 2008–2017 The Netty Project. All rights reserved.