软件包 | 描述 |
---|---|
io.netty.channel |
核心频道API是异步和事件驱动的各种传输(如
NIO Channel)的抽象 。
|
io.netty.channel.epoll |
针对Linux的优化传输,使用
EPOLL Edge-Triggered Mode获得最高性能。
|
io.netty.channel.kqueue |
BSD专用运输。
|
io.netty.channel.rxtx |
基于
RXTX的串行和并行端口通信传输。
|
io.netty.channel.sctp |
抽象扩展核心通道API的SCTP套接字接口。
|
io.netty.channel.socket |
抽象扩展核心通道API的TCP和UDP套接字接口。
|
io.netty.channel.socket.oio |
旧阻塞基于I / O的套接字通道API实现 - 建议少量连接(<1000)。
|
io.netty.channel.udt |
UDT运输。
|
io.netty.channel.unix |
Unix专用传输。
|
Modifier and Type | Interface and Description |
---|---|
interface |
MaxBytesRecvByteBufAllocator
RecvByteBufAllocator ,其基于每次读取的最大值和当事件循环尝试读取操作时的最大量来限制读取操作。
|
interface |
MaxMessagesRecvByteBufAllocator
RecvByteBufAllocator ,它限制事件循环尝试执行读取操作时将要尝试的读取操作数。
|
Modifier and Type | Class and Description |
---|---|
class |
AdaptiveRecvByteBufAllocator
RecvByteBufAllocator 自动增加和减少反馈时预测的缓冲区大小。
|
class |
DefaultMaxBytesRecvByteBufAllocator
RecvByteBufAllocator 根据从每次读取的最大字节数中减去该值产生缓冲区大小预测。
|
class |
DefaultMaxMessagesRecvByteBufAllocator
的默认实现 MaxMessagesRecvByteBufAllocator ,尊重ChannelConfig.isAutoRead() ,还可以防止溢出。
|
class |
FixedRecvByteBufAllocator
总是产生相同缓冲区大小预测的 RecvByteBufAllocator 。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<RecvByteBufAllocator> |
ChannelOption.RCVBUF_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
<T extends RecvByteBufAllocator> |
DefaultChannelConfig.getRecvByteBufAllocator() |
<T extends RecvByteBufAllocator> |
ChannelConfig.getRecvByteBufAllocator()
返回 RecvByteBufAllocator ,用于通道分配接收缓冲区。
|
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
DefaultChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
设置用于通道分配接收缓冲区的 RecvByteBufAllocator 。
|
Constructor and Description |
---|
DefaultChannelConfig(Channel channel, RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
EpollSocketChannelConfig |
EpollSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollChannelConfig |
EpollChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
KQueueSocketChannelConfig |
KQueueSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueServerSocketChannelConfig |
KQueueServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueServerChannelConfig |
KQueueServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
KQueueDomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueDatagramChannelConfig |
KQueueDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueChannelConfig |
KQueueChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
Modifier and Type | Method and Description |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpChannelConfig |
SctpChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
SocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
OioSocketChannelConfig |
OioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
Modifier and Type | Method and Description |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Copyright © 2008–2018 The Netty Project. All rights reserved.