程序包 | 说明 |
---|---|
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.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
限定符和类型 | 接口和说明 |
---|---|
static interface |
RecvByteBufAllocator.ExtendedHandle |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle
Focuses on enforcing the maximum messages per read condition for
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.continueReading() . |
static class |
RecvByteBufAllocator.DelegatingHandle
A
RecvByteBufAllocator.Handle which delegates all call to some other RecvByteBufAllocator.Handle . |
限定符和类型 | 方法和说明 |
---|---|
protected RecvByteBufAllocator.Handle |
RecvByteBufAllocator.DelegatingHandle.delegate()
Get the
RecvByteBufAllocator.Handle which all methods will be delegated to. |
RecvByteBufAllocator.Handle |
ServerChannelRecvByteBufAllocator.newHandle() |
RecvByteBufAllocator.Handle |
RecvByteBufAllocator.newHandle()
Creates a new handle.
|
RecvByteBufAllocator.Handle |
FixedRecvByteBufAllocator.newHandle() |
RecvByteBufAllocator.Handle |
DefaultMaxBytesRecvByteBufAllocator.newHandle() |
RecvByteBufAllocator.Handle |
AdaptiveRecvByteBufAllocator.newHandle() |
RecvByteBufAllocator.Handle |
Channel.Unsafe.recvBufAllocHandle()
Return the assigned
RecvByteBufAllocator.Handle which will be used to allocate ByteBuf 's when
receiving data. |
RecvByteBufAllocator.Handle |
AbstractChannel.AbstractUnsafe.recvBufAllocHandle() |
构造器和说明 |
---|
DelegatingHandle(RecvByteBufAllocator.Handle delegate) |
限定符和类型 | 方法和说明 |
---|---|
protected int |
AbstractEpollStreamChannel.SpliceInTask.spliceIn(FileDescriptor pipeOut,
RecvByteBufAllocator.Handle handle) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
AbstractNioMessageChannel.continueReading(RecvByteBufAllocator.Handle allocHandle) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
NioDatagramChannel.continueReading(RecvByteBufAllocator.Handle allocHandle) |