程序包 | 说明 |
---|---|
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.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 |
Benchmarks for
io.netty.util.concurrent . |
限定符和类型 | 接口和说明 |
---|---|
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 |
AbstractEventLoop
Skeletal implementation of
EventLoop . |
class |
AbstractEventLoopGroup
Skeletal implementation of
EventLoopGroup . |
class |
DefaultEventLoop |
class |
DefaultEventLoopGroup
MultithreadEventLoopGroup which must be used for the local transport. |
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
已过时。
this will be remove in the next-major release.
|
class |
ThreadPerChannelEventLoopGroup
已过时。
this will be remove in the next-major release.
|
限定符和类型 | 方法和说明 |
---|---|
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 |
EpollEventLoop
EventLoop which uses epoll under the covers. |
class |
EpollEventLoopGroup
EventLoopGroup which uses epoll under the covers. |
限定符和类型 | 类和说明 |
---|---|
class |
KQueueEventLoopGroup |
限定符和类型 | 类和说明 |
---|---|
class |
LocalEventLoopGroup
已过时。
Use
DefaultEventLoopGroup instead. |
限定符和类型 | 类和说明 |
---|---|
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
已过时。
use NIO / EPOLL / KQUEUE transport.
|
限定符和类型 | 接口和说明 |
---|---|
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 |
DefaultEventExecutor
Default
SingleThreadEventExecutor implementation which just execute all submitted task in a
serial fashion. |
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 |
NonStickyEventExecutorGroup
EventExecutorGroup which will preserve Runnable execution order but makes no guarantees about what
EventExecutor (and therefore Thread ) will be used to execute the Runnable s. |
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 |
EventExecutor.parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor , |
EventExecutorGroup |
AbstractEventExecutor.parent() |
构造器和说明 |
---|
AbstractEventExecutor(EventExecutorGroup parent) |
AbstractScheduledEventExecutor(EventExecutorGroup parent) |
DefaultEventExecutor(EventExecutorGroup parent) |
DefaultEventExecutor(EventExecutorGroup parent,
java.util.concurrent.Executor executor) |
DefaultEventExecutor(EventExecutorGroup parent,
java.util.concurrent.Executor executor,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
DefaultEventExecutor(EventExecutorGroup parent,
java.util.concurrent.ThreadFactory threadFactory) |
DefaultEventExecutor(EventExecutorGroup parent,
java.util.concurrent.ThreadFactory threadFactory,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
NonStickyEventExecutorGroup(EventExecutorGroup group)
Creates a new instance.
|
NonStickyEventExecutorGroup(EventExecutorGroup group,
int maxTaskExecutePerRun)
Creates a new instance.
|
SingleThreadEventExecutor(EventExecutorGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp)
Create a new instance
|
SingleThreadEventExecutor(EventExecutorGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedHandler)
Create a new instance
|
SingleThreadEventExecutor(EventExecutorGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp,
java.util.Queue<java.lang.Runnable> taskQueue,
RejectedExecutionHandler rejectedHandler) |
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
|