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.RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle| Modifier and Type | Method and 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.
|
newHandleint maxMessagesPerRead()
channelRead() event.
If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.MaxMessagesRecvByteBufAllocator maxMessagesPerRead(int maxMessagesPerRead)
Copyright © 2008–2025 The Netty Project. All rights reserved.