程序包 | 说明 |
---|---|
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).
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultSelectStrategyFactory
Factory which uses the default select strategy.
|
限定符和类型 | 字段和说明 |
---|---|
static SelectStrategyFactory |
DefaultSelectStrategyFactory.INSTANCE |
构造器和说明 |
---|
EpollEventLoopGroup(int nThreads,
SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the default
ThreadFactory . |
EpollEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
int maxEventsAtOnce,
SelectStrategyFactory selectStrategyFactory)
|
EpollEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
int maxEventsAtOnce,
SelectStrategyFactory selectStrategyFactory,
RejectedExecutionHandler rejectedExecutionHandler) |
EpollEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory . |
构造器和说明 |
---|
NioEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
java.nio.channels.spi.SelectorProvider selectorProvider,
SelectStrategyFactory selectStrategyFactory) |
NioEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
java.nio.channels.spi.SelectorProvider selectorProvider,
SelectStrategyFactory selectStrategyFactory,
RejectedExecutionHandler rejectedExecutionHandler) |