public interface MaxMessagesRecvByteBufAllocator extends RecvByteBufAllocator
RecvByteBufAllocator
,它限制事件循环尝试执行读取操作时将要尝试的读取操作数。
RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle
Modifier and Type | Method and Description |
---|---|
int |
maxMessagesPerRead()
返回每个读取循环要读取的最大消息数。
|
MaxMessagesRecvByteBufAllocator |
maxMessagesPerRead(int maxMessagesPerRead)
设置每个读取循环要读取的最大消息数。
|
newHandle
int maxMessagesPerRead()
MaxMessagesRecvByteBufAllocator maxMessagesPerRead(int maxMessagesPerRead)
Copyright © 2008–2018 The Netty Project. All rights reserved.