public interface MaxBytesRecvByteBufAllocator extends RecvByteBufAllocator
RecvByteBufAllocator
,其基于每个单独读取的最大值和当事件循环尝试读取操作时的最大量来限制读取操作。
RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle
Modifier and Type | Method and Description |
---|---|
int |
maxBytesPerIndividualRead()
返回每个读取操作读取的最大字节数。
|
MaxBytesRecvByteBufAllocator |
maxBytesPerIndividualRead(int maxBytesPerIndividualRead)
设置每个读取操作的最大读取字节数。
|
int |
maxBytesPerRead()
返回每个读取循环读取的最大字节数。
|
MaxBytesRecvByteBufAllocator |
maxBytesPerRead(int maxBytesPerRead)
设置每个读取循环读取的最大字节数。
|
java.util.Map.Entry<java.lang.Integer,java.lang.Integer> |
maxBytesPerReadPair()
原子方式获得读取循环和每个读取操作所需的最大字节数。
|
MaxBytesRecvByteBufAllocator |
maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)
设置读取循环和每个读取操作的最大读取字节数。
|
newHandle
int maxBytesPerRead()
MaxBytesRecvByteBufAllocator maxBytesPerRead(int maxBytesPerRead)
int maxBytesPerIndividualRead()
MaxBytesRecvByteBufAllocator maxBytesPerIndividualRead(int maxBytesPerIndividualRead)
java.util.Map.Entry<java.lang.Integer,java.lang.Integer> maxBytesPerReadPair()
maxBytesPerRead()
。
价值是从maxBytesPerIndividualRead()
MaxBytesRecvByteBufAllocator maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead)
maxBytesPerRead
- 见
maxBytesPerRead(int)
maxBytesPerIndividualRead
- 见
maxBytesPerIndividualRead(int)
Copyright © 2008–2018 The Netty Project. All rights reserved.