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.embedded |
A virtual
Channel that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context. |
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.local |
A virtual transport that enables the communication between the two
parties in the same virtual machine.
|
io.netty.channel.sctp |
Abstract SCTP socket interfaces which extend the core channel API.
|
io.netty.channel.sctp.nio |
NIO-based SCTP Channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.sctp.oio |
Old blocking I/O based SCTP channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
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.unix |
Unix specific transport.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultChannelConfig
The default
SocketChannelConfig implementation. |
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
Channel.config()
Returns the configuration of this channel.
|
ChannelConfig |
ChannelConfig.setAllocator(ByteBufAllocator allocator)
Set the
ByteBufAllocator which is used for the channel
to allocate buffers. |
ChannelConfig |
DefaultChannelConfig.setAllocator(ByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setAutoClose(boolean autoClose)
Deprecated.
Auto close will be removed in a future release.
Sets whether the
Channel should be closed automatically and immediately on write faillure.
The default is false . |
ChannelConfig |
DefaultChannelConfig.setAutoClose(boolean autoClose) |
ChannelConfig |
ChannelConfig.setAutoRead(boolean autoRead)
Sets if
ChannelHandlerContext.read() will be invoked automatically so that a user application doesn't
need to call it at all. |
ChannelConfig |
DefaultChannelConfig.setAutoRead(boolean autoRead) |
ChannelConfig |
ChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis)
Sets the connect timeout of the channel in milliseconds.
|
ChannelConfig |
DefaultChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
ChannelConfig |
ChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead)
Sets the maximum number of messages to read per read loop.
|
ChannelConfig |
DefaultChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead) |
ChannelConfig |
ChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator)
Set the
MessageSizeEstimator which is used for the channel
to detect the size of a message. |
ChannelConfig |
DefaultChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
private ChannelConfig |
DefaultChannelConfig.setPinEventExecutorPerGroup(boolean pinEventExecutor) |
ChannelConfig |
ChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Set the
ByteBufAllocator which is used for the channel
to allocate receive buffers. |
ChannelConfig |
DefaultChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Sets the high water mark of the write buffer.
|
ChannelConfig |
DefaultChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
ChannelConfig |
ChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Sets the low water mark of the write buffer.
|
ChannelConfig |
DefaultChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
ChannelConfig |
ChannelConfig.setWriteSpinCount(int writeSpinCount)
Sets the maximum loop count for a write operation until
WritableByteChannel.write(ByteBuffer) returns a non-zero value. |
ChannelConfig |
DefaultChannelConfig.setWriteSpinCount(int writeSpinCount) |
Modifier and Type | Field and Description |
---|---|
private ChannelConfig |
EmbeddedChannel.config |
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
EmbeddedChannel.config() |
Constructor and Description |
---|
EmbeddedChannel(boolean hasDisconnect,
ChannelConfig config,
ChannelHandler... handlers)
Create a new instance with the channel ID set to the given ID and the pipeline
initialized with the specified handlers.
|
Modifier and Type | Class and Description |
---|---|
class |
EpollChannelConfig |
class |
EpollDatagramChannelConfig |
class |
EpollDomainSocketChannelConfig |
class |
EpollServerChannelConfig |
class |
EpollServerSocketChannelConfig |
class |
EpollSocketChannelConfig |
Modifier and Type | Field and Description |
---|---|
private ChannelConfig |
LocalChannel.config |
private ChannelConfig |
LocalServerChannel.config |
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
LocalChannel.config() |
ChannelConfig |
LocalServerChannel.config() |
Modifier and Type | Interface and Description |
---|---|
interface |
SctpChannelConfig
A
ChannelConfig for a SctpChannel . |
interface |
SctpServerChannelConfig
A
ChannelConfig for a SctpServerChannelConfig . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSctpChannelConfig
The default
SctpChannelConfig implementation for SCTP. |
class |
DefaultSctpServerChannelConfig
The default
SctpServerChannelConfig implementation for SCTP. |
Modifier and Type | Class and Description |
---|---|
private class |
NioSctpChannel.NioSctpChannelConfig |
private class |
NioSctpServerChannel.NioSctpServerChannelConfig |
Modifier and Type | Class and Description |
---|---|
private class |
OioSctpChannel.OioSctpChannelConfig |
private class |
OioSctpServerChannel.OioSctpServerChannelConfig |
Modifier and Type | Interface and Description |
---|---|
interface |
DatagramChannelConfig
A
ChannelConfig for a DatagramChannel . |
interface |
ServerSocketChannelConfig
A
ChannelConfig for a ServerSocketChannel . |
interface |
SocketChannelConfig
A
ChannelConfig for a SocketChannel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultDatagramChannelConfig
The default
DatagramChannelConfig implementation. |
class |
DefaultServerSocketChannelConfig
The default
ServerSocketChannelConfig implementation. |
class |
DefaultSocketChannelConfig
The default
SocketChannelConfig implementation. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
NioDatagramChannelConfig
The default
NioDatagramChannelConfig implementation. |
private class |
NioServerSocketChannel.NioServerSocketChannelConfig |
private class |
NioSocketChannel.NioSocketChannelConfig |
Modifier and Type | Interface and Description |
---|---|
interface |
OioServerSocketChannelConfig
|
interface |
OioSocketChannelConfig
A
ChannelConfig for a OioSocketChannel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultOioServerSocketChannelConfig
Default
OioServerSocketChannelConfig implementation |
class |
DefaultOioSocketChannelConfig
Default
OioSocketChannelConfig implementation |
Modifier and Type | Interface and Description |
---|---|
interface |
DomainSocketChannelConfig
Special
ChannelConfig for DomainSocketChannel s. |