软件包 | 描述 |
---|---|
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 | Class and Description |
---|---|
class |
DefaultMessageSizeEstimator
默认 MessageSizeEstimator 实施支持的尺寸的估计ByteBuf , ByteBufHolder 和FileRegion 。
|
Modifier and Type | Field and Description |
---|---|
static MessageSizeEstimator |
DefaultMessageSizeEstimator.DEFAULT
返回未知消息的默认实现,返回
8 。
|
Modifier and Type | Field and Description |
---|---|
static ChannelOption<MessageSizeEstimator> |
ChannelOption.MESSAGE_SIZE_ESTIMATOR |
Modifier and Type | Method and Description |
---|---|
MessageSizeEstimator |
DefaultChannelConfig.getMessageSizeEstimator() |
MessageSizeEstimator |
ChannelConfig.getMessageSizeEstimator()
返回 MessageSizeEstimator ,用于通道检测消息的大小。
|
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
DefaultChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ChannelConfig |
ChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
设置用于通道的 MessageSizeEstimator 以检测消息的大小。
|
Modifier and Type | Method and Description |
---|---|
EpollSocketChannelConfig |
EpollSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
EpollChannelConfig |
EpollChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
KQueueSocketChannelConfig |
KQueueSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
KQueueServerSocketChannelConfig |
KQueueServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
KQueueServerChannelConfig |
KQueueServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
KQueueDomainSocketChannelConfig |
KQueueDomainSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
KQueueDatagramChannelConfig |
KQueueDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
KQueueChannelConfig |
KQueueChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
Modifier and Type | Method and Description |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpChannelConfig |
SctpChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
SocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
DatagramChannelConfig |
DatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
OioSocketChannelConfig |
OioSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
OioDatagramChannelConfig |
OioDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
Modifier and Type | Method and Description |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Copyright © 2008–2018 The Netty Project. All rights reserved.