Top Description Methods
io.netty.channel

public Interface MaxMessagesRecvByteBufAllocator

extends RecvByteBufAllocator
Known Direct Implementers
io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator

RecvByteBufAllocator that limits the number of read operations that will be attempted when a read operation is attempted by the event loop.

Method Summary

Modifier and TypeMethod and Description
public int
maxMessagesPerRead()

Returns the maximum number of messages to read per read loop.

public MaxMessagesRecvByteBufAllocator
maxMessagesPerRead(int maxMessagesPerRead)

Sets the maximum number of messages to read per read loop.

Inherited from io.netty.channel.RecvByteBufAllocator:
newHandle

Method Detail

maxMessagesPerReadback to summary
public int maxMessagesPerRead()

Returns the maximum number of messages to read per read loop. a channelRead() event. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.

maxMessagesPerReadback 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.