public final class EpollEventLoopGroup extends 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,
                   EventExecutorChooserFactory chooserFactory,
                   SelectStrategyFactory selectStrategyFactory)  | 
EpollEventLoopGroup(int nThreads,
                   Executor executor,
                   EventExecutorChooserFactory chooserFactory,
                   SelectStrategyFactory selectStrategyFactory,
                   RejectedExecutionHandler rejectedExecutionHandler)  | 
EpollEventLoopGroup(int nThreads,
                   Executor executor,
                   EventExecutorChooserFactory chooserFactory,
                   SelectStrategyFactory selectStrategyFactory,
                   RejectedExecutionHandler rejectedExecutionHandler,
                   EventLoopTaskQueueFactory queueFactory)  | 
EpollEventLoopGroup(int nThreads,
                   Executor executor,
                   EventExecutorChooserFactory chooserFactory,
                   SelectStrategyFactory selectStrategyFactory,
                   RejectedExecutionHandler rejectedExecutionHandler,
                   EventLoopTaskQueueFactory taskQueueFactory,
                   EventLoopTaskQueueFactory tailTaskQueueFactory)  | 
EpollEventLoopGroup(int nThreads,
                   Executor executor,
                   SelectStrategyFactory selectStrategyFactory)  | 
EpollEventLoopGroup(int nThreads,
                   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,
                   SelectStrategyFactory selectStrategyFactory)
 | 
EpollEventLoopGroup(int nThreads,
                   ThreadFactory threadFactory,
                   SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given  
ThreadFactory. | 
EpollEventLoopGroup(ThreadFactory threadFactory)
Create a new instance using the default number of threads and the given  
ThreadFactory. | 
| 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. 
 | 
newDefaultThreadFactory, next, register, register, registerawaitTermination, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFutureexecute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedforEach, spliteratorpublic EpollEventLoopGroup()
ThreadFactory.public EpollEventLoopGroup(int nThreads)
ThreadFactory.public EpollEventLoopGroup(ThreadFactory threadFactory)
ThreadFactory.public EpollEventLoopGroup(int nThreads,
                           SelectStrategyFactory selectStrategyFactory)
ThreadFactory.public EpollEventLoopGroup(int nThreads,
                           ThreadFactory threadFactory)
ThreadFactory.public EpollEventLoopGroup(int nThreads,
                           Executor executor)
public EpollEventLoopGroup(int nThreads,
                           ThreadFactory threadFactory,
                           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, 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,
                           SelectStrategyFactory selectStrategyFactory)
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 nThreads,
                           Executor executor,
                           EventExecutorChooserFactory chooserFactory,
                           SelectStrategyFactory selectStrategyFactory,
                           RejectedExecutionHandler rejectedExecutionHandler,
                           EventLoopTaskQueueFactory taskQueueFactory,
                           EventLoopTaskQueueFactory tailTaskQueueFactory)
nThreads - the number of threads that will be used by this instance.executor - the Executor to use, or null if default one should be used.chooserFactory - the EventExecutorChooserFactory to use.selectStrategyFactory - the SelectStrategyFactory to use.rejectedExecutionHandler - the RejectedExecutionHandler to use.taskQueueFactory - the EventLoopTaskQueueFactory to use for
                         SingleThreadEventExecutor.execute(Runnable),
                         or null if default one should be used.tailTaskQueueFactory - the EventLoopTaskQueueFactory to use for
                             SingleThreadEventLoop.executeAfterEventLoopIteration(Runnable),
                             or null if default one should be used.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–2025 The Netty Project. All rights reserved.