程序包 | 说明 |
---|---|
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.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).
|
io.netty.util.concurrent |
Utility classes for concurrent / async tasks.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
EventLoop
Will handle all the I/O operations for a
Channel once registered. |
interface |
EventLoopGroup
Special
EventExecutorGroup which allows registering Channel s that get
processed for later selection during the event loop. |
限定符和类型 | 类和说明 |
---|---|
class |
MultithreadEventLoopGroup
Abstract base class for
EventLoopGroup implementations that handles their tasks with multiple threads at
the same time. |
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. |
class |
ThreadPerChannelEventLoopGroup
|
限定符和类型 | 方法和说明 |
---|---|
ChannelPipeline |
DefaultChannelPipeline.addAfter(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addAfter(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addBefore(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addBefore(EventExecutorGroup group,
java.lang.String baseName,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addFirst(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(EventExecutorGroup executor,
ChannelHandler... handlers) |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
DefaultChannelPipeline.addLast(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler) |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
java.lang.String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
限定符和类型 | 类和说明 |
---|---|
class |
EpollEventLoopGroup
EventLoopGroup which uses epoll under the covers. |
限定符和类型 | 类和说明 |
---|---|
class |
LocalEventLoopGroup
MultithreadEventLoopGroup which must be used for the local transport. |
限定符和类型 | 类和说明 |
---|---|
class |
NioEventLoop
SingleThreadEventLoop implementation which register the Channel 's to a
Selector and so does the multi-plexing of these in the event loop. |
class |
NioEventLoopGroup
|
限定符和类型 | 类和说明 |
---|---|
class |
OioEventLoopGroup
EventLoopGroup which is used to handle OIO Channel 's. |
限定符和类型 | 接口和说明 |
---|---|
interface |
EventExecutor
The
EventExecutor is a special EventExecutorGroup which comes
with some handy methods to see if a Thread is executed in a event loop. |
interface |
OrderedEventExecutor
Marker interface for
EventExecutor s that will process all submitted tasks in an ordered / serial fashion. |
限定符和类型 | 类和说明 |
---|---|
class |
AbstractEventExecutor
Abstract base class for
EventExecutor implementations. |
class |
AbstractEventExecutorGroup
Abstract base class for
EventExecutorGroup implementations. |
class |
AbstractScheduledEventExecutor
Abstract base class for
EventExecutor s that want to support scheduling. |
class |
DefaultEventExecutorGroup
Default implementation of
MultithreadEventExecutorGroup which will use DefaultEventExecutor instances
to handle the tasks. |
class |
GlobalEventExecutor
Single-thread singleton
EventExecutor . |
class |
ImmediateEventExecutor
Executes
Runnable objects in the caller's thread. |
class |
MultithreadEventExecutorGroup
Abstract base class for
EventExecutorGroup implementations that handles their tasks with multiple threads at
the same time. |
class |
SingleThreadEventExecutor
Abstract base class for
OrderedEventExecutor 's that execute all its submitted tasks in a single thread. |
class |
UnorderedThreadPoolEventExecutor
EventExecutor implementation which makes no guarantees about the ordering of task execution that
are submitted because there may be multiple threads executing these tasks. |
限定符和类型 | 方法和说明 |
---|---|
EventExecutorGroup |
UnorderedThreadPoolEventExecutor.parent() |
EventExecutorGroup |
SingleThreadEventExecutor.parent() |
EventExecutorGroup |
ImmediateEventExecutor.parent() |
EventExecutorGroup |
GlobalEventExecutor.parent() |
EventExecutorGroup |
EventExecutor.parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor , |
构造器和说明 |
---|
SingleThreadEventExecutor(EventExecutorGroup parent,
java.util.concurrent.ThreadFactory threadFactory,
boolean addTaskWakesUp)
Create a new instance
|
SingleThreadEventExecutor(EventExecutorGroup parent,
java.util.concurrent.ThreadFactory threadFactory,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedHandler)
Create a new instance
|