程序包 | 说明 |
---|---|
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.kqueue |
BSD specific transport.
|
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.
|
限定符和类型 | 接口和说明 |
---|---|
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. |
限定符和类型 | 类和说明 |
---|---|
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. |
class |
ServerChannelRecvByteBufAllocator
MaxMessagesRecvByteBufAllocator implementation which should be used for ServerChannel s. |
限定符和类型 | 字段和说明 |
---|---|
static ChannelOption<RecvByteBufAllocator> |
ChannelOption.RCVBUF_ALLOCATOR |
限定符和类型 | 方法和说明 |
---|---|
<T extends RecvByteBufAllocator> |
DefaultChannelConfig.getRecvByteBufAllocator() |
<T extends RecvByteBufAllocator> |
ChannelConfig.getRecvByteBufAllocator()
Returns
RecvByteBufAllocator which is used for the channel to allocate receive buffers. |
限定符和类型 | 方法和说明 |
---|---|
ChannelConfig |
DefaultChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ChannelConfig |
ChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Set the
RecvByteBufAllocator which is used for the channel to allocate receive buffers. |
构造器和说明 |
---|
DefaultChannelConfig(Channel channel,
RecvByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
EpollSocketChannelConfig |
EpollSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
EpollServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollServerChannelConfig |
EpollServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
EpollDomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollDomainDatagramChannelConfig |
EpollDomainDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollDatagramChannelConfig |
EpollDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
EpollChannelConfig |
EpollChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
构造器和说明 |
---|
EpollChannelConfig(Channel channel,
RecvByteBufAllocator recvByteBufAllocator) |
限定符和类型 | 方法和说明 |
---|---|
KQueueSocketChannelConfig |
KQueueSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueServerSocketChannelConfig |
KQueueServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueServerChannelConfig |
KQueueServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
KQueueDomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueDomainDatagramChannelConfig |
KQueueDomainDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueDatagramChannelConfig |
KQueueDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
KQueueChannelConfig |
KQueueChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
RxtxChannelConfig |
RxtxChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
SctpServerChannelConfig |
SctpServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpChannelConfig |
SctpChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpServerChannelConfig |
DefaultSctpServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SctpChannelConfig |
DefaultSctpChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
SocketChannelConfig |
SocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DuplexChannelConfig |
DuplexChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DatagramChannelConfig |
DefaultDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DatagramChannelConfig |
DatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
限定符和类型 | 方法和说明 |
---|---|
OioSocketChannelConfig |
OioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
OioServerSocketChannelConfig |
OioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
OioDatagramChannelConfig |
OioDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
OioSocketChannelConfig |
DefaultOioSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
OioServerSocketChannelConfig |
DefaultOioServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
UdtServerChannelConfig |
UdtServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
UdtChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtServerChannelConfig |
DefaultUdtServerChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
UdtChannelConfig |
DefaultUdtChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
DomainSocketChannelConfig |
DomainSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
DomainDatagramChannelConfig |
DomainDatagramChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |