Top Description Methods
io.netty.channel

public Interface MaxBytesRecvByteBufAllocator

extends RecvByteBufAllocator
Known Direct Implementers
io.netty.channel.DefaultMaxBytesRecvByteBufAllocator
Imports
java.util.Map.Entry

RecvByteBufAllocator that limits a read operation based upon a maximum value per individual read and a maximum amount when a read operation is attempted by the event loop.

Method Summary

Modifier and TypeMethod and Description
public int
maxBytesPerIndividualRead()

Returns the maximum number of bytes to read per individual read operation.

public MaxBytesRecvByteBufAllocator
maxBytesPerIndividualRead(int maxBytesPerIndividualRead)

Sets the maximum number of bytes to read per individual read operation.

public int
maxBytesPerRead()

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

public MaxBytesRecvByteBufAllocator
maxBytesPerRead(int maxBytesPerRead)

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

public Map.Entry<Integer, Integer>

Returns:

The Key is from maxBytesPerRead(). The Value is from maxBytesPerIndividualRead()
maxBytesPerReadPair
()

Atomic way to get the maximum number of bytes to read for a read loop and per individual read operation.

public MaxBytesRecvByteBufAllocator
maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)

Sets the maximum number of bytes to read for a read loop and per individual read operation.

Inherited from io.netty.channel.RecvByteBufAllocator:
newHandle

Method Detail

maxBytesPerIndividualReadback to summary
public int maxBytesPerIndividualRead()

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

maxBytesPerIndividualReadback to summary
public MaxBytesRecvByteBufAllocator maxBytesPerIndividualRead(int maxBytesPerIndividualRead)

Sets the maximum number of bytes to read per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.

maxBytesPerReadback to summary
public int maxBytesPerRead()

Returns the maximum number of bytes 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 bytes.

maxBytesPerReadback to summary
public MaxBytesRecvByteBufAllocator maxBytesPerRead(int maxBytesPerRead)

Sets the maximum number of bytes to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.

maxBytesPerReadPairback to summary
public Map.Entry<Integer, Integer> maxBytesPerReadPair()

Atomic way to get the maximum number of bytes to read for a read loop and per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.

Returns:Map.Entry<Integer, Integer>

The Key is from maxBytesPerRead(). The Value is from maxBytesPerIndividualRead()

maxBytesPerReadPairback to summary
public MaxBytesRecvByteBufAllocator maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)

Sets the maximum number of bytes to read for a read loop and per individual read operation. If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.

Parameters
maxBytesPerRead:int

see maxBytesPerRead(int)

maxBytesPerIndividualRead:int

see maxBytesPerIndividualRead(int)