-
- All Superinterfaces:
RecvBufferAllocator
- All Known Implementing Classes:
AdaptiveRecvBufferAllocator,DefaultMaxMessagesRecvBufferAllocator,FixedRecvBufferAllocator,KQueueGuessRecvBufferAllocator,ServerChannelRecvBufferAllocator
public interface MaxMessagesRecvBufferAllocator extends RecvBufferAllocator
RecvBufferAllocatorthat 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.netty5.channel.RecvBufferAllocator
RecvBufferAllocator.Handle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intmaxMessagesPerRead()Returns the maximum number of messages to read per read loop.MaxMessagesRecvBufferAllocatormaxMessagesPerRead(int maxMessagesPerRead)Sets the maximum number of messages to read per read loop.-
Methods inherited from interface io.netty5.channel.RecvBufferAllocator
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
MaxMessagesRecvBufferAllocator 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.
-
-