程序包 | 说明 |
---|---|
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.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.oio |
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
|
限定符和类型 | 类和说明 |
---|---|
class |
SingleThreadEventLoop
Abstract base class for
EventLoop 's that execute all its submitted tasks in a single thread. |
class |
ThreadPerChannelEventLoop
SingleThreadEventLoop which is used to handle OIO Channel 's. |
限定符和类型 | 方法和说明 |
---|---|
EventLoop |
Channel.eventLoop()
|
EventLoop |
AbstractChannel.eventLoop() |
EventLoop |
ThreadPerChannelEventLoopGroup.next() |
EventLoop |
SingleThreadEventLoop.next() |
EventLoop |
MultithreadEventLoopGroup.next() |
EventLoop |
EventLoopGroup.next()
Return the next
EventLoop to use |
限定符和类型 | 方法和说明 |
---|---|
protected abstract boolean |
AbstractChannel.isCompatible(EventLoop loop)
Return
true if the given EventLoop is compatible with this instance. |
void |
Channel.Unsafe.register(EventLoop eventLoop,
ChannelPromise promise)
Register the
Channel of the ChannelPromise with the EventLoop and notify
the ChannelFuture once the registration was complete. |
void |
AbstractChannel.AbstractUnsafe.register(EventLoop eventLoop,
ChannelPromise promise) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
EmbeddedChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
EpollServerSocketChannel.isCompatible(EventLoop loop) |
protected boolean |
AbstractEpollServerChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
LocalServerChannel.isCompatible(EventLoop loop) |
protected boolean |
LocalChannel.isCompatible(EventLoop loop) |
限定符和类型 | 类和说明 |
---|---|
class |
NioEventLoop
SingleThreadEventLoop implementation which register the Channel 's to a
Selector and so does the multi-plexing of these in the event loop. |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
AbstractNioChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
AbstractOioChannel.isCompatible(EventLoop loop) |