RecvByteBufAllocator that limits the number of read operations that will be attempted when a read operation
is attempted by the event loop.
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public MaxMessagesRecvByteBufAllocator | maxMessagesPerRead(int maxMessagesPerRead)
Sets the maximum number of messages to read per read loop. |
| maxMessagesPerRead | back to summary |
|---|---|
| public int maxMessagesPerRead() Returns the maximum number of messages to read per read loop.
a | |
| maxMessagesPerRead | back to summary |
|---|---|
| public 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. | |