Package | Description |
---|---|
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.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.
|
Modifier and Type | Interface and Description |
---|---|
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. |
Modifier and Type | Class and Description |
---|---|
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 handle 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
|
Modifier and Type | Method and Description |
---|---|
ChannelPipeline |
ChannelPipeline.addAfter(EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler after an existing handler of this
pipeline. |
ChannelPipeline |
ChannelPipeline.addBefore(EventExecutorGroup group,
String baseName,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler before an existing handler of this
pipeline. |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts a
ChannelHandler s at the first position of this pipeline. |
ChannelPipeline |
ChannelPipeline.addFirst(EventExecutorGroup group,
String name,
ChannelHandler handler)
Inserts a
ChannelHandler at the first position of this pipeline. |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
ChannelHandler... handlers)
Inserts a
ChannelHandler s at the last position of this pipeline. |
ChannelPipeline |
ChannelPipeline.addLast(EventExecutorGroup group,
String name,
ChannelHandler handler)
Appends a
ChannelHandler at the last position of this pipeline. |
Modifier and Type | Class and Description |
---|---|
class |
EpollEventLoopGroup
A
MultithreadEventLoopGroup which uses epoll under the
covers. |
Modifier and Type | Class and Description |
---|---|
class |
NioEventLoop
A
SingleThreadEventLoop implementation which registers each Channel with a
NIO Selector and performs the multiplexing of these in the event loop. |
class |
NioEventLoopGroup
|
Modifier and Type | Class and Description |
---|---|
class |
OioEventLoopGroup
EventLoopGroup which is used to handle OIO Channel 's. |
Modifier and Type | Interface and Description |
---|---|
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 |
PausableEventExecutor
Implement this interface if you need your
EventExecutor implementation to be able
to reject new work. |
interface |
WrappedEventExecutor
A marker interface indicating that the
EventExecutor is a wrapper around
another EventExecutor implementation. |
Modifier and Type | Class and Description |
---|---|
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
AbstractEventExecutor which execute tasks in the callers 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
EventExecutor 's that execute all its submitted tasks in a single thread. |
Modifier and Type | Method and Description |
---|---|
EventExecutorGroup |
EventExecutor.parent()
Return the
EventExecutorGroup which is the parent of this EventExecutor , |
EventExecutorGroup |
AbstractEventExecutor.parent() |
Constructor and Description |
---|
AbstractEventExecutor(EventExecutorGroup parent) |
AbstractScheduledEventExecutor(EventExecutorGroup parent) |
DefaultEventExecutor(EventExecutorGroup parent) |
DefaultEventExecutor(EventExecutorGroup parent,
Executor executor) |
SingleThreadEventExecutor(EventExecutorGroup parent,
Executor executor,
boolean addTaskWakesUp) |
Copyright © 2008–2015 The Netty Project. All rights reserved.