public class DefaultMaxBytesRecvByteBufAllocator extends java.lang.Object implements MaxBytesRecvByteBufAllocator
RecvByteBufAllocator
根据从每次读取的最大字节数中减去该值产生缓冲区大小预测。
RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle
Constructor and Description |
---|
DefaultMaxBytesRecvByteBufAllocator() |
DefaultMaxBytesRecvByteBufAllocator(int maxBytesPerRead, int maxBytesPerIndividualRead) |
Modifier and Type | Method and Description |
---|---|
int |
maxBytesPerIndividualRead()
返回每个读取操作读取的最大字节数。
|
DefaultMaxBytesRecvByteBufAllocator |
maxBytesPerIndividualRead(int maxBytesPerIndividualRead)
设置每个读取操作的最大读取字节数。
|
int |
maxBytesPerRead()
返回每个读取循环读取的最大字节数。
|
DefaultMaxBytesRecvByteBufAllocator |
maxBytesPerRead(int maxBytesPerRead)
设置每个读取循环读取的最大字节数。
|
java.util.Map.Entry<java.lang.Integer,java.lang.Integer> |
maxBytesPerReadPair()
原子方式获得读取循环和每个读取操作所需的最大字节数。
|
DefaultMaxBytesRecvByteBufAllocator |
maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)
设置读取循环和每个读取操作的最大读取字节数。
|
RecvByteBufAllocator.Handle |
newHandle()
创建一个新的句柄。
|
public DefaultMaxBytesRecvByteBufAllocator()
public DefaultMaxBytesRecvByteBufAllocator(int maxBytesPerRead, int maxBytesPerIndividualRead)
public RecvByteBufAllocator.Handle newHandle()
RecvByteBufAllocator
newHandle
接口
RecvByteBufAllocator
public int maxBytesPerRead()
MaxBytesRecvByteBufAllocator
复制的描述
maxBytesPerRead
接口
MaxBytesRecvByteBufAllocator
public DefaultMaxBytesRecvByteBufAllocator maxBytesPerRead(int maxBytesPerRead)
MaxBytesRecvByteBufAllocator
maxBytesPerRead
在界面
MaxBytesRecvByteBufAllocator
public int maxBytesPerIndividualRead()
MaxBytesRecvByteBufAllocator
maxBytesPerIndividualRead
接口
MaxBytesRecvByteBufAllocator
public DefaultMaxBytesRecvByteBufAllocator maxBytesPerIndividualRead(int maxBytesPerIndividualRead)
MaxBytesRecvByteBufAllocator
maxBytesPerIndividualRead
接口
MaxBytesRecvByteBufAllocator
public java.util.Map.Entry<java.lang.Integer,java.lang.Integer> maxBytesPerReadPair()
MaxBytesRecvByteBufAllocator
public DefaultMaxBytesRecvByteBufAllocator maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)
MaxBytesRecvByteBufAllocator
maxBytesPerReadPair
接口
MaxBytesRecvByteBufAllocator
maxBytesPerRead
- 见
MaxBytesRecvByteBufAllocator.maxBytesPerRead(int)
maxBytesPerIndividualRead
- 见
MaxBytesRecvByteBufAllocator.maxBytesPerIndividualRead(int)
Copyright © 2008–2018 The Netty Project. All rights reserved.