软件包 | 描述 |
---|---|
io.netty.channel |
核心频道API是异步和事件驱动的各种传输(如
NIO Channel)的抽象 。
|
io.netty.channel.epoll |
针对linux的优化传输,使用
EPOLL Edge-Triggered Mode获得最高性能。
|
io.netty.channel.kqueue |
BSD专用运输。
|
io.netty.channel.nio |
基于
NIO的通道API实现 - 推荐用于大量连接(> = 1000)。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultSelectStrategyFactory
使用默认选择策略的工厂。
|
Modifier and Type | Field and Description |
---|---|
static SelectStrategyFactory |
DefaultSelectStrategyFactory.INSTANCE |
Constructor and Description |
---|
EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory) |
EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) |
EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory) |
EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
使用指定数量的线程和默认值
ThreadFactory 创建新实例。
|
EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
|
EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
使用指定数量的线程和给定的
ThreadFactory 创建一个新实例。
|
Constructor and Description |
---|
KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory) |
KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) |
KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory) |
KQueueEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
使用指定数量的线程和默认值
ThreadFactory 创建一个新实例。
|
KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
|
KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory .
|
Constructor and Description |
---|
NioEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, java.nio.channels.spi.SelectorProvider selectorProvider, SelectStrategyFactory selectStrategyFactory) |
NioEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, java.nio.channels.spi.SelectorProvider selectorProvider, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) |
NioEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, java.nio.channels.spi.SelectorProvider selectorProvider, SelectStrategyFactory selectStrategyFactory) |
NioEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, java.nio.channels.spi.SelectorProvider selectorProvider, SelectStrategyFactory selectStrategyFactory) |
Copyright © 2008–2018 The Netty Project. All rights reserved.