Package io.netty.channel
Interface RecvByteBufAllocator
-
- All Known Subinterfaces:
MaxBytesRecvByteBufAllocator
,MaxMessagesRecvByteBufAllocator
- All Known Implementing Classes:
AdaptiveRecvByteBufAllocator
,DefaultMaxBytesRecvByteBufAllocator
,DefaultMaxMessagesRecvByteBufAllocator
,FixedRecvByteBufAllocator
,ServerChannelRecvByteBufAllocator
public interface RecvByteBufAllocator
Allocates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RecvByteBufAllocator.DelegatingHandle
ARecvByteBufAllocator.Handle
which delegates all call to some otherRecvByteBufAllocator.Handle
.static interface
RecvByteBufAllocator.ExtendedHandle
static interface
RecvByteBufAllocator.Handle
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecvByteBufAllocator.Handle
newHandle()
Creates a new handle.
-
-
-
Method Detail
-
newHandle
RecvByteBufAllocator.Handle newHandle()
Creates a new handle. The handle provides the actual operations and keeps the internal information which is required for predicting an optimal buffer capacity.
-
-