Home / Class/ DefaultEventExecutorGroup Class — netty Architecture

DefaultEventExecutorGroup Class — netty Architecture

Architecture documentation for the DefaultEventExecutorGroup class in DefaultEventExecutorGroup.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3c82babb_3f1e_a2ad_d06c_3861b0347b47["DefaultEventExecutorGroup"]
  8fa006c4_6260_5c6f_5b70_983ab8e9c559["DefaultEventExecutorGroup.java"]
  3c82babb_3f1e_a2ad_d06c_3861b0347b47 -->|defined in| 8fa006c4_6260_5c6f_5b70_983ab8e9c559
  875b6eab_170d_284a_25e0_bdc0ae8fa10d["DefaultEventExecutorGroup()"]
  3c82babb_3f1e_a2ad_d06c_3861b0347b47 -->|method| 875b6eab_170d_284a_25e0_bdc0ae8fa10d
  c1995af1_4f08_4a61_8952_4bcc9c85115d["EventExecutor()"]
  3c82babb_3f1e_a2ad_d06c_3861b0347b47 -->|method| c1995af1_4f08_4a61_8952_4bcc9c85115d

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/DefaultEventExecutorGroup.java lines 25–61

public class DefaultEventExecutorGroup extends MultithreadEventExecutorGroup {
    /**
     * @see #DefaultEventExecutorGroup(int, ThreadFactory)
     */
    public DefaultEventExecutorGroup(int nThreads) {
        this(nThreads, null);
    }

    /**
     * Create a new instance.
     *
     * @param nThreads          the number of threads that will be used by this instance.
     * @param threadFactory     the ThreadFactory to use, or {@code null} if the default should be used.
     */
    public DefaultEventExecutorGroup(int nThreads, ThreadFactory threadFactory) {
        this(nThreads, threadFactory, SingleThreadEventExecutor.DEFAULT_MAX_PENDING_EXECUTOR_TASKS,
                RejectedExecutionHandlers.reject());
    }

    /**
     * Create a new instance.
     *
     * @param nThreads          the number of threads that will be used by this instance.
     * @param threadFactory     the ThreadFactory to use, or {@code null} if the default should be used.
     * @param maxPendingTasks   the maximum number of pending tasks before new tasks will be rejected.
     * @param rejectedHandler   the {@link RejectedExecutionHandler} to use.
     */
    public DefaultEventExecutorGroup(int nThreads, ThreadFactory threadFactory, int maxPendingTasks,
                                     RejectedExecutionHandler rejectedHandler) {
        super(nThreads, threadFactory, maxPendingTasks, rejectedHandler);
    }

    @Override
    protected EventExecutor newChild(Executor executor, Object... args) throws Exception {
        return new DefaultEventExecutor(this, executor, (Integer) args[0], (RejectedExecutionHandler) args[1]);
    }
}

Frequently Asked Questions

What is the DefaultEventExecutorGroup class?
DefaultEventExecutorGroup is a class in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultEventExecutorGroup.java.
Where is DefaultEventExecutorGroup defined?
DefaultEventExecutorGroup is defined in common/src/main/java/io/netty/util/concurrent/DefaultEventExecutorGroup.java at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free