Home / Class/ TestEventExecutorGroup Class — netty Architecture

TestEventExecutorGroup Class — netty Architecture

Architecture documentation for the TestEventExecutorGroup class in AutoScalingEventExecutorChooserFactoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  21f14226_21f3_c976_fa1e_a6ea390f452a["TestEventExecutorGroup"]
  64bbeca7_14ae_a6e0_13bc_10ee775d5e7c["AutoScalingEventExecutorChooserFactoryTest.java"]
  21f14226_21f3_c976_fa1e_a6ea390f452a -->|defined in| 64bbeca7_14ae_a6e0_13bc_10ee775d5e7c
  451cbcf6_6cbf_b404_e07f_191549368cc2["TestEventExecutorGroup()"]
  21f14226_21f3_c976_fa1e_a6ea390f452a -->|method| 451cbcf6_6cbf_b404_e07f_191549368cc2
  8f046171_a1bf_f214_6fe1_2b36d4909528["EventExecutor()"]
  21f14226_21f3_c976_fa1e_a6ea390f452a -->|method| 8f046171_a1bf_f214_6fe1_2b36d4909528

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java lines 90–106

    private static final class TestEventExecutorGroup extends MultithreadEventExecutorGroup {
        private static final Object[] ARGS = new Object[0];

        TestEventExecutorGroup(int minThreads, int maxThreads, long checkPeriod, TimeUnit unit) {
            super(maxThreads,
                  new ThreadPerTaskExecutor(Executors.defaultThreadFactory()),
                  new AutoScalingEventExecutorChooserFactory(
                          minThreads, maxThreads, checkPeriod, unit, 0.4, 0.6,
                          maxThreads, maxThreads, 2),
                  ARGS);
        }

        @Override
        protected EventExecutor newChild(Executor executor, Object... args) {
            return new TestEventExecutor(this, executor);
        }
    }

Frequently Asked Questions

What is the TestEventExecutorGroup class?
TestEventExecutorGroup is a class in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java.
Where is TestEventExecutorGroup defined?
TestEventExecutorGroup is defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java at line 90.

Analyze Your Own Codebase

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

Try Supermodel Free