| 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.local |
A virtual transport that enables the communication between the two
parties in the same virtual machine.
|
| 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 |
DefaultChannelConfig
The default
SocketChannelConfig implementation. |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
Channel.config()
Returns the configuration of this channel.
|
ChannelConfig |
DefaultChannelConfig.setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setAllocator(io.netty.buffer.ByteBufAllocator allocator)
Set the
ByteBufAllocator which is used for the channel
to allocate buffers. |
ChannelConfig |
DefaultChannelConfig.setAutoClose(boolean autoClose) |
ChannelConfig |
ChannelConfig.setAutoClose(boolean autoClose)
|
ChannelConfig |
DefaultChannelConfig.setAutoRead(boolean autoRead) |
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.setConnectTimeoutMillis(int connectTimeoutMillis) |
ChannelConfig |
ChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis)
Sets the connect timeout of the channel in milliseconds.
|
ChannelConfig |
DefaultChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
ChannelConfig |
ChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
Use
MaxMessagesRecvByteBufAllocator
Sets the maximum number of messages to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages. |
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. |
ChannelConfig |
DefaultChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Set the
RecvByteBufAllocator which is used for the channel to allocate receive buffers. |
ChannelConfig |
DefaultChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
ChannelConfig |
ChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Sets the high water mark of the write buffer.
|
ChannelConfig |
DefaultChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
ChannelConfig |
ChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Sets the low water mark of the write buffer.
|
ChannelConfig |
DefaultChannelConfig.setWriteSpinCount(int writeSpinCount) |
ChannelConfig |
ChannelConfig.setWriteSpinCount(int writeSpinCount)
Sets the maximum loop count for a write operation until
WritableByteChannel.write(ByteBuffer) returns a non-zero value. |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.reset(ChannelConfig config)
Only
getMaxMessagesPerRead() is used. |
void |
RecvByteBufAllocator.Handle.reset(ChannelConfig config)
Reset any counters that have accumulated and recommend how many messages/bytes should be read for the next
read loop.
|
void |
RecvByteBufAllocator.DelegatingHandle.reset(ChannelConfig config) |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
EmbeddedChannel.config() |
| Modifier and Type | Method and Description |
|---|---|
ChannelConfig |
LocalServerChannel.config() |
ChannelConfig |
LocalChannel.config() |
| 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 | 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 |
Copyright © 2008–2016 The Netty Project. All rights reserved.