| 软件包 | 描述 |
|---|---|
| io.netty.bootstrap |
带有流畅API的助手类可以轻松实现典型的客户端和服务器端通道初始化。
|
| io.netty.channel |
核心通道API是异步和事件驱动的各种传输(如
NIO Channel)的抽象 。
|
| io.netty.channel.epoll |
针对Linux的优化传输,使用
EPOLL Edge-Triggered Mode实现最高性能。
|
| io.netty.channel.kqueue |
BSD专用运输。
|
| io.netty.channel.local |
一种虚拟传输,可在同一虚拟机中实现双方之间的通信。
|
| io.netty.channel.nio |
基于
NIO的通道API实现 - 推荐用于大量连接(> = 1000)。
|
| io.netty.channel.oio |
旧阻止基于I / O的通道API实现 - 建议用于少量连接(<1000)。
|
| Modifier and Type | Method and Description |
|---|---|
EventLoopGroup |
ServerBootstrapConfig.childGroup()
返回将用于子通道的配置 EventLoopGroup或null如果尚未配置)。
|
EventLoopGroup |
ServerBootstrap.childGroup()
已过时。
改为使用
ServerBootstrap.config() 。
|
EventLoopGroup |
AbstractBootstrapConfig.group()
如果尚未配置, 则返回已配置的 EventLoopGroup或null 。
|
EventLoopGroup |
AbstractBootstrap.group()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
Bootstrap |
Bootstrap.clone(EventLoopGroup group)
返回此引导程序的深层克隆,它具有相同的配置,但它使用给定的 EventLoopGroup 。
|
ServerBootstrap |
ServerBootstrap.group(EventLoopGroup group)
指定用于父级(接受者)和子级(客户端)的 EventLoopGroup 。
|
B |
AbstractBootstrap.group(EventLoopGroup group)
EventLoopGroup用于处理待创建的所有事件Channel
|
ServerBootstrap |
ServerBootstrap.group(EventLoopGroup parentGroup, EventLoopGroup childGroup)
为父(受主)和孩子(客户)设置 EventLoopGroup 。
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EventLoop
将处理一次注册的 Channel的所有I / O操作。
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEventLoop
骨架实现 EventLoop 。
|
class |
AbstractEventLoopGroup
骨架实施 EventLoopGroup 。
|
class |
DefaultEventLoop |
class |
DefaultEventLoopGroup
MultithreadEventLoopGroup必须用于当地运输。
|
class |
MultithreadEventLoopGroup
EventLoopGroup实现的抽象基类, 它们同时处理具有多个线程的任务。
|
class |
SingleThreadEventLoop
EventLoop的抽象基类,它在单个线程中执行其所有提交的任务。
|
class |
ThreadPerChannelEventLoop
|
class |
ThreadPerChannelEventLoopGroup
一个 EventLoopGroup创建一个EventLoop每Channel 。
|
| Modifier and Type | Method and Description |
|---|---|
EventLoopGroup |
SingleThreadEventLoop.parent() |
EventLoopGroup |
EventLoop.parent() |
EventLoopGroup |
AbstractEventLoop.parent() |
| Constructor and Description |
|---|
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.ThreadFactory threadFactory, boolean addTaskWakesUp) |
SingleThreadEventLoop(EventLoopGroup parent, java.util.concurrent.ThreadFactory threadFactory, boolean addTaskWakesUp, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler) |
| Modifier and Type | Class and Description |
|---|---|
class |
EpollEventLoopGroup
EventLoopGroup其中使用epoll的封面。
|
| Modifier and Type | Class and Description |
|---|---|
class |
KQueueEventLoopGroup |
| Modifier and Type | Class and Description |
|---|---|
class |
LocalEventLoopGroup
已过时。
改为使用
DefaultEventLoopGroup 。
|
| Modifier and Type | Class and Description |
|---|---|
class |
NioEventLoop
SingleThreadEventLoop实现将Channel的Channel注册到Selector ,事件循环中的这些操作也是多Selector用的。
|
class |
NioEventLoopGroup
MultithreadEventLoopGroup实现,用于基于NIO Selector的Channel s。
|
| Modifier and Type | Class and Description |
|---|---|
class |
OioEventLoopGroup
EventLoopGroup which is used to handle OIO
Channel's.
|
Copyright © 2008–2018 The Netty Project. All rights reserved.