public final class EpollEventLoopGroup extends MultithreadEventLoopGroup
MultithreadEventLoopGroup which uses epoll under the
covers. This EventLoopGroup works only on Linux systems!| Constructor and Description |
|---|
EpollEventLoopGroup()
|
EpollEventLoopGroup(int nEventLoops)
Create a new instance that uses the default
Executor. |
EpollEventLoopGroup(int nEventLoops,
Executor executor) |
EpollEventLoopGroup(int nEventLoops,
Executor executor,
int maxEventsAtOnce)
Deprecated.
|
EpollEventLoopGroup(int nEventLoops,
ExecutorServiceFactory executorServiceFactory) |
EpollEventLoopGroup(int nEventLoops,
ExecutorServiceFactory executorServiceFactory,
int maxEventsAtOnce)
|
| Modifier and Type | Method and Description |
|---|---|
protected EventLoop |
newChild(Executor executor,
Object... args)
Create a new EventExecutor which will later then accessible via the
MultithreadEventExecutorGroup.next() method. |
void |
setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the child event loops.
|
next, register, registerawaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, newDefaultExecutorService, shutdown, shutdownGracefully, terminationFutureclose, execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildren, isShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedclosepublic EpollEventLoopGroup()
EventLoops as there processors/cores
available, as well as the default Executor.DefaultExecutorServiceFactorypublic EpollEventLoopGroup(int nEventLoops)
Executor.nEventLoops - the number of EventLoops that will be used by this instance.
If executor is null this number will also be the parallelism
requested from the default executor. It is generally advised for the number
of EventLoops and the number of Threads used by theDefaultExecutorServiceFactorypublic EpollEventLoopGroup(int nEventLoops,
Executor executor)
nEventLoops - the number of EventLoops that will be used by this instance.
If executor is null this number will also be the parallelism
requested from the default executor. It is generally advised for the number
of EventLoops and the number of Threads used by the
executor to lie very close together.executor - the Executor to use, or null if the default should be used.public EpollEventLoopGroup(int nEventLoops,
ExecutorServiceFactory executorServiceFactory)
nEventLoops - the number of EventLoops that will be used by this instance.
If executor is null this number will also be the parallelism
requested from the default executor. It is generally advised for the number
of EventLoops and the number of Threads used by the
executor to lie very close together.executorServiceFactory - the ExecutorServiceFactory to use, or null if the
default should be used.@Deprecated public EpollEventLoopGroup(int nEventLoops, Executor executor, int maxEventsAtOnce)
EpollEventLoopGroup(int), EpollEventLoopGroup(int) or
EpollEventLoopGroup(int, Executor)nEventLoops - the number of EventLoops that will be used by this instance.
If executor is null this number will also be the parallelism
requested from the default executor. It is generally advised for the number
of EventLoops and the number of Threads used by the
executor to lie very close together.executor - the Executor to use, or null if the default should be used.maxEventsAtOnce - the maximum number of epoll events to handle per epollWait(...).@Deprecated public EpollEventLoopGroup(int nEventLoops, ExecutorServiceFactory executorServiceFactory, int maxEventsAtOnce)
EpollEventLoopGroup(int), EpollEventLoopGroup(int) or
EpollEventLoopGroup(int, ExecutorServiceFactory)nEventLoops - the number of EventLoops that will be used by this instance.
If executor is null this number will also be the parallelism
requested from the default executor. It is generally advised for the number
of EventLoops and the number of Threads used by the
executor to lie very close together.executorServiceFactory - the ExecutorServiceFactory to use, or null if the default
should be used.maxEventsAtOnce - the maximum number of epoll events to handle per epollWait(...).public void setIoRatio(int ioRatio)
50, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.protected EventLoop newChild(Executor executor, Object... args) throws Exception
MultithreadEventExecutorGroupMultithreadEventExecutorGroup.next() method. This method will be
called for each thread that will serve this MultithreadEventExecutorGroup.newChild in class MultithreadEventLoopGroupExceptionCopyright © 2008–2015 The Netty Project. All rights reserved.