Class DefaultEventExecutorGroup

java.lang.Object
All Implemented Interfaces:
EventExecutorGroup, java.lang.Iterable<EventExecutor>, java.util.concurrent.Executor, java.util.concurrent.ExecutorService, java.util.concurrent.ScheduledExecutorService

public class DefaultEventExecutorGroup extends MultithreadEventExecutorGroup
Default implementation of MultithreadEventExecutorGroup which will use DefaultEventExecutor instances to handle the tasks.
  • Constructor Details

    • DefaultEventExecutorGroup

      public DefaultEventExecutorGroup(int nThreads)
      See Also:
    • DefaultEventExecutorGroup

      public DefaultEventExecutorGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
      Create a new instance.
      Parameters:
      nThreads - the number of threads that will be used by this instance.
      threadFactory - the ThreadFactory to use, or null if the default should be used.
    • DefaultEventExecutorGroup

      public DefaultEventExecutorGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxPendingTasks, RejectedExecutionHandler rejectedHandler)
      Create a new instance.
      Parameters:
      nThreads - the number of threads that will be used by this instance.
      threadFactory - the ThreadFactory to use, or null if the default should be used.
      maxPendingTasks - the maximum number of pending tasks before new tasks will be rejected.
      rejectedHandler - the RejectedExecutionHandler to use.
  • Method Details