public class MultiThreadIoEventLoopGroup extends MultithreadEventLoopGroup implements IoEventLoopGroup
IoEventLoopGroup implementation that will handle its tasks with multiple threads.| Modifier | Constructor and Description |
|---|---|
|
MultiThreadIoEventLoopGroup(Executor executor,
IoHandlerFactory ioHandlerFactory)
Creates a new instance of the
MultiThreadIoEventLoopGroup using the default number
of threads. |
|
MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
IoHandlerFactory ioHandlerFactory)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
|
MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
protected |
MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
Object... args)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
protected |
MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory,
Object... args)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
|
MultiThreadIoEventLoopGroup(int nThreads,
IoHandlerFactory ioHandlerFactory)
/**
Creates a new instance of the
MultiThreadIoEventLoopGroup using the default ThreadFactory. |
|
MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
protected |
MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
Object... args)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
protected |
MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory,
Object... args)
Creates a new instance of the
MultiThreadIoEventLoopGroup. |
|
MultiThreadIoEventLoopGroup(IoHandlerFactory ioHandlerFactory)
Creates a new instance of the
MultiThreadIoEventLoopGroup using the default number
of threads and default ThreadFactory. |
|
MultiThreadIoEventLoopGroup(ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory)
Create a new instance using the default number of thread.
|
| Modifier and Type | Method and Description |
|---|---|
protected IoEventLoop |
newChild(Executor executor,
IoHandler ioHandler,
Object... args)
|
protected EventLoop |
newChild(Executor executor,
Object... args) |
IoEventLoop |
next()
Return the next
EventLoop to use |
newDefaultThreadFactory, 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, waitisCompatible, isIoTyperegister, register, registerisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedforEach, spliteratorpublic MultiThreadIoEventLoopGroup(IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup using the default number
of threads and default ThreadFactory.public MultiThreadIoEventLoopGroup(int nThreads,
IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup using the default ThreadFactory.nThreads - the number of threads and so EventLoops that are created.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.public MultiThreadIoEventLoopGroup(ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory)
threadFactory - the ThreadFactory that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.public MultiThreadIoEventLoopGroup(Executor executor, IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup using the default number
of threads.executor - the Executor that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.public MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.executor - the Executor that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.public MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.threadFactory - the ThreadFactory that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.public MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
IoHandlerFactory ioHandlerFactory)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.executor - the Executor that is used.chooserFactory - the EventExecutorChooserFactory that is used to choose the
IoEventLoop when next() is
called.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.protected MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory,
Object... args)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.executor - the Executor that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.args - extra args that are passed to newChild(Executor, Object...) method.protected MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory,
Object... args)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.threadFactory - the ThreadFactory that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.args - extra args that are passed to newChild(Executor, Object...) method.protected MultiThreadIoEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
IoHandlerFactory ioHandlerFactory,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
Object... args)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.threadFactory - the ThreadFactory that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.chooserFactory - the EventExecutorChooserFactory that is used to choose theargs - extra args that are passed to newChild(Executor, Object...) method.protected MultiThreadIoEventLoopGroup(int nThreads,
Executor executor,
IoHandlerFactory ioHandlerFactory,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
Object... args)
MultiThreadIoEventLoopGroup.nThreads - the number of threads and so EventLoops that are created.executor - the Executor that is used.ioHandlerFactory - the IoHandlerFactory that will be used to create IoHandler for handling
IO.chooserFactory - the EventExecutorChooserFactory that is used to choose theargs - extra args that are passed to newChild(Executor, Object...) method.protected EventLoop newChild(Executor executor, Object... args) throws Exception
newChild in class MultithreadEventLoopGroupExceptionprotected IoEventLoop newChild(Executor executor, IoHandler ioHandler, Object... args)
executor - the Executor that should be used to handle execution of tasks and IO.ioHandler - the IoHandler that should be used to handle IO.args - extra arguments that are based by the constructor.IoEventLoop.public IoEventLoop next()
EventLoopGroupEventLoop to usenext in interface EventLoopGroupnext in interface IoEventLoopGroupnext in interface io.netty.util.concurrent.EventExecutorGroupnext in class MultithreadEventLoopGroupCopyright © 2008–2025 The Netty Project. All rights reserved.