EventLoopGroup which uses epoll under the covers. Because of this
it only works on linux.
| Access | Constructor and Description |
|---|---|
| public | EpollEventLoopGroup()
Create a new instance using the default number of threads and the default |
| public | EpollEventLoopGroup(int nThreads)
Create a new instance using the specified number of threads and the default |
| public | EpollEventLoopGroup(ThreadFactory threadFactory)
Create a new instance using the default number of threads and the given |
| public | EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the default |
| public | EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory)
Create a new instance using the specified number of threads and the given |
| public | |
| public | EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given |
| public | EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce)
Deprecated
Use
Create a new instance using the specified number of threads, the given EpollEventLoopGroup(int) or EpollEventLoopGroup(int, ThreadFactory)
ThreadFactory and the given
maximal amount of epoll events to handle per epollWait(...).
|
| public | EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
Deprecated
Use
Create a new instance using the specified number of threads, the given EpollEventLoopGroup(int), EpollEventLoopGroup(int, ThreadFactory), or
EpollEventLoopGroup(int, SelectStrategyFactory)
ThreadFactory and the given
maximal amount of epoll events to handle per epollWait(...).
|
| public | |
| public | EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory)
|
| public | EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler)
|
| public | EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory)
|
| public | EpollEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, Executor the Executor to use, or executor, EventExecutorChooserFactory null if default one should be used.the chooserFactory, SelectStrategyFactory EventExecutorChooserFactory to use.the selectStrategyFactory, RejectedExecutionHandler SelectStrategyFactory to use.the rejectedExecutionHandler, EventLoopTaskQueueFactory RejectedExecutionHandler to use.the taskQueueFactory, EventLoopTaskQueueFactory EventLoopTaskQueueFactory to use for
SingleThreadEventLoop#execute(Runnable),
or null if default one should be used.the tailTaskQueueFactory)EventLoopTaskQueueFactory to use for
SingleThreadEventLoop#executeAfterEventLoopIteration(Runnable),
or null if default one should be used.
|
| Modifier and Type | Method and Description |
|---|---|
| protected EventLoop | newChild(Executor executor, Object... args)
Implements abstract io. next() method.
|
| public void | setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the child event loops. |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup() Create a new instance using the default number of threads and the default | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads) Create a new instance using the specified number of threads and the default | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(ThreadFactory threadFactory) Create a new instance using the default number of threads and the given
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory) Create a new instance using the specified number of threads and the default
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory) Create a new instance using the specified number of threads and the given
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, Executor executor) | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory) Create a new instance using the specified number of threads and the given
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce)
Deprecated Use Create a new instance using the specified number of threads, the given
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
Deprecated Use Create a new instance using the specified number of threads, the given
| |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, Executor executor, SelectStrategyFactory selectStrategyFactory) | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory) | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) | |
| EpollEventLoopGroup | back to summary |
|---|---|
| public EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory) | |
| EpollEventLoopGroup | back to summary |
|---|---|
public EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory taskQueueFactory, EventLoopTaskQueueFactory tailTaskQueueFactory)
| |
| newChild | back to summary |
|---|---|
| protected EventLoop newChild(Executor executor, Object... args) throws Exception Implements abstract io. Doc from io. Create a new EventExecutor which will later then accessible via the
| |
| setIoRatio | back to summary |
|---|---|
| public void setIoRatio(int ioRatio) Sets the percentage of the desired amount of time spent for I/O in the child event loops. The default value is
| |