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 | Interface and Description |
---|---|
interface |
MaxBytesRecvByteBufAllocator
RecvByteBufAllocator that limits a read operation based upon a maximum value per individual read
and a maximum amount when a read operation is attempted by the event loop. |
interface |
MaxMessagesRecvByteBufAllocator
RecvByteBufAllocator that limits the number of read operations that will be attempted when a read operation
is attempted by the event loop. |
Modifier and Type | Class and Description |
---|---|
class |
AdaptiveRecvByteBufAllocator
The
RecvByteBufAllocator that automatically increases and
decreases the predicted buffer size on feed back. |
class |
DefaultMaxBytesRecvByteBufAllocator
The
RecvByteBufAllocator that yields a buffer size prediction based upon decrementing the value from
the max bytes per read. |
class |
DefaultMaxMessagesRecvByteBufAllocator
Default implementation of
MaxMessagesRecvByteBufAllocator which respects ChannelConfig.isAutoRead()
and also prevents overflow. |
class |
FixedRecvByteBufAllocator
The
RecvByteBufAllocator that always yields the same buffer
size prediction. |
Modifier and Type | Field and Description |
---|---|
static ChannelOption<RecvByteBufAllocator> |
ChannelOption.RCVBUF_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
<T extends RecvByteBufAllocator> |
DefaultChannelConfig.getRecvByteBufAllocator() |
<T extends RecvByteBufAllocator> |
ChannelConfig.getRecvByteBufAllocator()
Returns
RecvByteBufAllocator which is used for the channel to allocate receive buffers. |
Modifier and Type | Method and Description |
---|---|
ChannelConfig |
DefaultChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Set the
RecvByteBufAllocator which is used for the channel to allocate receive buffers. |
Constructor and Description |
---|
DefaultChannelConfig(Channel channel,
RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
DatagramChannelConfig |
DefaultDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.
|
OioSocketChannelConfig |
OioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.
|
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.
|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.
|
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.
|
Copyright © 2008–2019 The Netty Project. All rights reserved.