程序包 | 说明 |
---|---|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.rxtx |
A serial and parallel port communication transport based on RXTX.
|
io.netty.channel.sctp |
Abstract SCTP socket interfaces which extend the core channel API.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.udt |
UDT Transport.
|
io.netty.channel.unix |
Unix specific transport.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultMessageSizeEstimator
Default
MessageSizeEstimator implementation which supports the estimation of the size of
ByteBuf , ByteBufHolder and FileRegion . |
限定符和类型 | 字段和说明 |
---|---|
static MessageSizeEstimator |
DefaultMessageSizeEstimator.DEFAULT
Return the default implementation which returns
8 for unknown messages. |
限定符和类型 | 字段和说明 |
---|---|
static ChannelOption<MessageSizeEstimator> |
ChannelOption.MESSAGE_SIZE_ESTIMATOR |
限定符和类型 | 方法和说明 |
---|---|
MessageSizeEstimator |
DefaultChannelConfig.getMessageSizeEstimator() |
MessageSizeEstimator |
ChannelConfig.getMessageSizeEstimator()
Returns
MessageSizeEstimator which is used for the channel
to detect the size of a message. |
限定符和类型 | 方法和说明 |
---|---|
ChannelConfig |
DefaultChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ChannelConfig |
ChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Set the
MessageSizeEstimator which is used for the channel
to detect the size of a message. |
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpChannelConfig |
SctpChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
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) |
限定符和类型 | 方法和说明 |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |