| 软件包 | 描述 |
|---|---|
| io.netty.channel |
核心频道API是异步和事件驱动的各种传输(如
NIO Channel)的抽象 。
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdaptiveRecvByteBufAllocator
RecvByteBufAllocator自动增加和减少反馈中的预测缓冲区大小。
|
class |
DefaultMaxMessagesRecvByteBufAllocator
默认实现 MaxMessagesRecvByteBufAllocator ,其中ChannelConfig.isAutoRead()也可以防止溢出。
|
class |
FixedRecvByteBufAllocator
始终产生相同缓冲区大小预测的 RecvByteBufAllocator 。
|
| Modifier and Type | Method and Description |
|---|---|
MaxMessagesRecvByteBufAllocator |
MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int maxMessagesPerRead)
设置每个读取循环要读取的最大消息数。
|
MaxMessagesRecvByteBufAllocator |
DefaultMaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int maxMessagesPerRead) |
Copyright © 2008–2018 The Netty Project. All rights reserved.