public final class EpollEventLoopGroup
extends io.netty.channel.MultithreadEventLoopGroup
EventLoopGroup
which uses epoll under the covers. Because of this
it only works on linux.Constructor and Description |
---|
EpollEventLoopGroup()
Create a new instance using the default number of threads and the default
ThreadFactory . |
EpollEventLoopGroup(int nThreads)
Create a new instance using the specified number of threads and the default
ThreadFactory . |
EpollEventLoopGroup(int nThreads,
Executor executor) |
EpollEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory) |
EpollEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler) |
EpollEventLoopGroup(int nThreads,
Executor executor,
io.netty.channel.SelectStrategyFactory selectStrategyFactory) |
EpollEventLoopGroup(int nThreads,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the default
ThreadFactory . |
EpollEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory . |
EpollEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
int maxEventsAtOnce)
Deprecated.
|
EpollEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
int maxEventsAtOnce,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
|
EpollEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory . |
Modifier and Type | Method and Description |
---|---|
protected io.netty.channel.EventLoop |
newChild(Executor executor,
Object... args) |
void |
setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the child event loops.
|
newDefaultThreadFactory, next, register, register, register
awaitTermination, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFuture
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
forEach, spliterator
public EpollEventLoopGroup()
ThreadFactory
.public EpollEventLoopGroup(int nThreads)
ThreadFactory
.public EpollEventLoopGroup(int nThreads, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
ThreadFactory
.public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory)
ThreadFactory
.public EpollEventLoopGroup(int nThreads, Executor executor)
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
ThreadFactory
.@Deprecated public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce)
EpollEventLoopGroup(int)
or EpollEventLoopGroup(int, ThreadFactory)
ThreadFactory
and the given
maximal amount of epoll events to handle per epollWait(...).@Deprecated public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
EpollEventLoopGroup(int)
, EpollEventLoopGroup(int, ThreadFactory)
, or
EpollEventLoopGroup(int, SelectStrategyFactory)
ThreadFactory
and the given
maximal amount of epoll events to handle per epollWait(...).public EpollEventLoopGroup(int nThreads, Executor executor, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
public EpollEventLoopGroup(int nThreads, Executor executor, io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
public EpollEventLoopGroup(int nThreads, Executor executor, io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory, io.netty.channel.SelectStrategyFactory selectStrategyFactory, io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler)
Copyright © 2008–2019 The Netty Project. All rights reserved.