-
- All Known Subinterfaces:
MaxBytesRecvBufferAllocator,MaxMessagesRecvBufferAllocator
- All Known Implementing Classes:
AdaptiveRecvBufferAllocator,DefaultMaxBytesRecvBufferAllocator,DefaultMaxMessagesRecvBufferAllocator,FixedRecvBufferAllocator,KQueueGuessRecvBufferAllocator,ServerChannelRecvBufferAllocator
public interface RecvBufferAllocatorAllocates 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 interfaceRecvBufferAllocator.Handle
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecvBufferAllocator.HandlenewHandle()Creates a new handle.
-
-
-
Method Detail
-
newHandle
RecvBufferAllocator.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.
-
-