EventLoopGroup implementation that will handle its tasks with multiple threads.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private static final InternalLogger |
| Access | Constructor and Description |
|---|---|
| public | MultithreadEventLoopGroup(IoHandlerFactory
the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, IoHandlerFactory the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, Executor the executor, IoHandlerFactory Executor to use, or null if the default should be used.the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, ThreadFactory the threadFactory, IoHandlerFactory ThreadFactory to use, or null if the default should be used.the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(Executor
the executor, IoHandlerFactory Executor to use, or null if the default should be used.the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(ThreadFactory
the threadFactory, IoHandlerFactory ThreadFactory to use, or null if the default should be used.the ioHandlerFactory)IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, Executor the executor, IoHandlerFactory Executor to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler)RejectedExecutionHandler to use.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, ThreadFactory the threadFactory, IoHandlerFactory ThreadFactory to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler)RejectedExecutionHandler to use.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, Executor the executor, IoHandlerFactory Executor to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler, int RejectedExecutionHandler to use.the maximum number of tasks per maxTasksPerRun)EventLoop run that will be processed
before trying to handle IO again.Create a new instance. |
| public | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, ThreadFactory the threadFactory, IoHandlerFactory ThreadFactory to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler, int RejectedExecutionHandler to use.the maximum number of tasks per maxTasksPerRun)EventLoop run that will be processed
before trying to handle IO again.Create a new instance. |
| protected | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, Executor the executor, IoHandlerFactory Executor to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler, int RejectedExecutionHandler to use.the maximum number of tasks per maxTasksPerRun, Object... EventLoop run that will be processed
before trying to handle IO again.extra arguments passed to args)newChild(Executor, int, RejectedExecutionHandler,
IoHandler, int, Object.Create a new instance. |
| protected | MultithreadEventLoopGroup(int
the number of threads that will be used by this instance. nThreads, ThreadFactory the threadFactory, IoHandlerFactory ThreadFactory to use, or null if the default should be used.the ioHandlerFactory, int IoHandlerFactory to use for creating new
IoHandler instances that will handle the IO for the
EventLoop.the maximum number of pending tasks before new tasks will be rejected. maxPendingTasks, RejectedExecutionHandler the rejectedHandler, int RejectedExecutionHandler to use.the maximum number of tasks per maxTasksPerRun, Object... EventLoop run that will be processed
before trying to handle IO again.extra arguments passed to args)newChild(Executor, int, RejectedExecutionHandler,
IoHandler, int, Object.Create a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| private static Object[] | |
| protected final EventLoop | newChild(Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler, Object... args)
Overrides io. next() method.
|
| protected EventLoop | Returns: theEventLoop to use.the executor, int Executor to use for execution.the maximum number of pending tasks. maxPendingTasks, RejectedExecutionHandler the rejectedExecutionHandler, IoHandler RejectedExecutionHandler to use when the number of outstanding tasks
reach maxPendingTasks.the ioHandler, int IoHandler to use.the maximum number of tasks per maxTasksPerRun, Object... EventLoop run that will be processed
before trying to handle IO again.any extra args needed to construct the args)EventLoop. This will be an empty
array if not sub-classes and extra arguments are given.Creates a new |
| private static ThreadFactory | |
| public final EventLoop | next()
Overrides io. Implements io. EventLoop to use
|
| protected static int |
| DEFAULT_EVENT_LOOP_THREADS | back to summary |
|---|---|
| public static final int DEFAULT_EVENT_LOOP_THREADS | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, Executor executor, IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(Executor executor, IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, Executor executor, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, Executor executor, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler, int maxTasksPerRun) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| public MultithreadEventLoopGroup(int nThreads, ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler, int maxTasksPerRun) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| protected MultithreadEventLoopGroup(int nThreads, Executor executor, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler, int maxTasksPerRun, Object... args) Create a new instance.
| |
| MultithreadEventLoopGroup | back to summary |
|---|---|
| protected MultithreadEventLoopGroup(int nThreads, ThreadFactory threadFactory, IoHandlerFactory ioHandlerFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler, int maxTasksPerRun, Object... args) Create a new instance.
| |
| merge | back to summary |
|---|---|
| private static Object[] merge(IoHandlerFactory ioHandlerFactory, int maxTasksPerRun, Object... args) | |
| newChild | back to summary |
|---|---|
| protected final EventLoop newChild(Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler, Object... args) Overrides io. Doc from io. Create a new EventExecutor which will later then accessible via the
| |
| newChild | back to summary |
|---|---|
| protected EventLoop newChild(Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler, IoHandler ioHandler, int maxTasksPerRun, Object... args) Creates a new
| |
| newDefaultThreadFactory | back to summary |
|---|---|
| private static ThreadFactory newDefaultThreadFactory() | |
| next | back to summary |
|---|---|
| public final EventLoop next() Overrides io. Implements io. Doc from io. Return the next
| |
| pickThreadCount | back to summary |
|---|---|
| protected static int pickThreadCount(int nThreads) Return the number of threads to use based on the given | |