Package io.netty.channel
Interface MaxMessagesRecvByteBufAllocator
-
- All Superinterfaces:
RecvByteBufAllocator
- All Known Implementing Classes:
AdaptiveRecvByteBufAllocator
,DefaultMaxMessagesRecvByteBufAllocator
,FixedRecvByteBufAllocator
,ServerChannelRecvByteBufAllocator
public interface MaxMessagesRecvByteBufAllocator extends RecvByteBufAllocator
RecvByteBufAllocator
that limits the number of read operations that will be attempted when a read operation is attempted by the event loop.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.RecvByteBufAllocator
RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
maxMessagesPerRead()
Returns the maximum number of messages to read per read loop.MaxMessagesRecvByteBufAllocator
maxMessagesPerRead(int maxMessagesPerRead)
Sets the maximum number of messages to read per read loop.-
Methods inherited from interface io.netty.channel.RecvByteBufAllocator
newHandle
-
-
-
-
Method Detail
-
maxMessagesPerRead
int maxMessagesPerRead()
Returns the maximum number of messages to read per read loop. achannelRead()
event. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
-
maxMessagesPerRead
MaxMessagesRecvByteBufAllocator maxMessagesPerRead(int maxMessagesPerRead)
Sets the maximum number of messages to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
-
-