程序包 | 说明 |
---|---|
io.netty.bootstrap |
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
|
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.channel.unix.tests |
Unix specific transport tests.
|
io.netty.example.http2.tiles | |
io.netty.testsuite.transport |
Common test suite classes.
|
io.netty.testsuite.transport.socket |
Test suite classes for socket
|
限定符和类型 | 方法和说明 |
---|---|
EventLoopGroup |
ServerBootstrapConfig.childGroup()
Returns the configured
EventLoopGroup which will be used for the child channels or null
if non is configured yet. |
EventLoopGroup |
ServerBootstrap.childGroup()
已过时。
Use
ServerBootstrap.config() instead. |
EventLoopGroup |
AbstractBootstrapConfig.group()
Returns the configured
EventLoopGroup or null if non is configured yet. |
EventLoopGroup |
AbstractBootstrap.group()
已过时。
Use
AbstractBootstrap.config() instead. |
限定符和类型 | 方法和说明 |
---|---|
Bootstrap |
Bootstrap.clone(EventLoopGroup group)
Returns a deep clone of this bootstrap which has the identical configuration except that it uses
the given
EventLoopGroup . |
ServerBootstrap |
ServerBootstrap.group(EventLoopGroup group)
Specify the
EventLoopGroup which is used for the parent (acceptor) and the child (client). |
B |
AbstractBootstrap.group(EventLoopGroup group)
The
EventLoopGroup which is used to handle all the events for the to-be-created
Channel |
ServerBootstrap |
ServerBootstrap.group(EventLoopGroup parentGroup,
EventLoopGroup childGroup)
Set the
EventLoopGroup for the parent (acceptor) and the child (client). |
限定符和类型 | 接口和说明 |
---|---|
interface |
EventLoop
Will handle all the I/O operations for a
Channel once registered. |
限定符和类型 | 类和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
EventLoopGroup |
SingleThreadEventLoop.parent() |
EventLoopGroup |
EventLoop.parent() |
EventLoopGroup |
AbstractEventLoop.parent() |
构造器和说明 |
---|
AbstractEventLoop(EventLoopGroup parent) |
DefaultEventLoop(EventLoopGroup parent) |
DefaultEventLoop(EventLoopGroup parent,
java.util.concurrent.Executor executor) |
DefaultEventLoop(EventLoopGroup parent,
java.util.concurrent.ThreadFactory threadFactory) |
SingleThreadEventLoop(EventLoopGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp) |
SingleThreadEventLoop(EventLoopGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
SingleThreadEventLoop(EventLoopGroup parent,
java.util.concurrent.Executor executor,
boolean addTaskWakesUp,
java.util.Queue<java.lang.Runnable> taskQueue,
java.util.Queue<java.lang.Runnable> tailTaskQueue,
RejectedExecutionHandler rejectedExecutionHandler) |
SingleThreadEventLoop(EventLoopGroup parent,
java.util.concurrent.ThreadFactory threadFactory,
boolean addTaskWakesUp) |
SingleThreadEventLoop(EventLoopGroup parent,
java.util.concurrent.ThreadFactory threadFactory,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
限定符和类型 | 类和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
protected abstract EventLoopGroup |
DetectPeerCloseWithoutReadTest.newGroup() |
构造器和说明 |
---|
Http2Server(EventLoopGroup eventLoopGroup) |
HttpServer(EventLoopGroup eventLoopGroup) |
限定符和类型 | 方法和说明 |
---|---|
protected EventLoopGroup |
NioEventLoopTest.newEventLoopGroup() |
protected EventLoopGroup |
DefaultEventLoopTest.newEventLoopGroup() |
protected abstract EventLoopGroup |
AbstractSingleThreadEventLoopTest.newEventLoopGroup() |
限定符和类型 | 字段和说明 |
---|---|
protected EventLoopGroup |
SocketTestPermutation.nioBossGroup |
protected EventLoopGroup |
SocketTestPermutation.nioWorkerGroup |
protected EventLoopGroup |
SocketTestPermutation.oioBossGroup |
protected EventLoopGroup |
SocketTestPermutation.oioWorkerGroup |