Package | Description |
---|---|
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.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).
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultMessageSizeEstimator
Default
MessageSizeEstimator implementation which supports the estimation of the size of
ByteBuf , ByteBufHolder and FileRegion . |
Modifier and Type | Field and Description |
---|---|
static MessageSizeEstimator |
DefaultMessageSizeEstimator.DEFAULT
Return the default implementation which returns
8 for unknown messages. |
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()
Returns
MessageSizeEstimator which is used for the channel
to detect the size of a message. |
Modifier and Type | Method and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
DatagramChannelConfig |
DefaultDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
DatagramChannelConfig |
DatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SocketChannelConfig |
SocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.
|
OioSocketChannelConfig |
OioSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.
|
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.
|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.
|
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.
|
Copyright © 2008–2019 The Netty Project. All rights reserved.