Module io.netty5.common
Package io.netty5.util.concurrent

Class MultithreadEventExecutorGroup

    • Constructor Detail

      • MultithreadEventExecutorGroup

        public MultithreadEventExecutorGroup​(int nThreads,
         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.
      • MultithreadEventExecutorGroup

        public MultithreadEventExecutorGroup​(int nThreads,
         Executor executor)
        Create a new instance.
        Parameters:
        nThreads - the number of threads that will be used by this instance.
        executor - the Executor to use, or null if the default should be used.
      • MultithreadEventExecutorGroup

        public MultithreadEventExecutorGroup​(int nThreads,
         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.
      • MultithreadEventExecutorGroup

        public MultithreadEventExecutorGroup​(int nThreads,
         Executor executor,
         int maxPendingTasks,
         RejectedExecutionHandler rejectedHandler)
        Create a new instance.
        Parameters:
        nThreads - the number of threads that will be used by this instance.
        executor - the Executor 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.
      • MultithreadEventExecutorGroup

        protected MultithreadEventExecutorGroup​(int nThreads,
         Executor executor,
         int maxPendingTasks,
         RejectedExecutionHandler rejectedHandler,
         Object... args)
        Create a new instance.
        Parameters:
        nThreads - the number of threads that will be used by this instance.
        executor - the Executor 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.
        args - arguments which will passed to each newChild(Executor, int, RejectedExecutionHandler, Object...) call