Home / Class/ TestEventExecutor Class — netty Architecture

TestEventExecutor Class — netty Architecture

Architecture documentation for the TestEventExecutor class in DefaultPromiseTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8b46a1e8_e0a2_e0e0_e50b_4991b6a5e8f3["TestEventExecutor"]
  c8ee1ee4_0bc9_1fc7_8106_4f4ee23722a5["DefaultPromiseTest.java"]
  8b46a1e8_e0a2_e0e0_e50b_4991b6a5e8f3 -->|defined in| c8ee1ee4_0bc9_1fc7_8106_4f4ee23722a5
  7ea2f073_8f06_492d_3ce0_3651a2c14c01["TestEventExecutor()"]
  8b46a1e8_e0a2_e0e0_e50b_4991b6a5e8f3 -->|method| 7ea2f073_8f06_492d_3ce0_3651a2c14c01
  91d7c04c_78df_5079_c536_a87d3e68b6fb["run()"]
  8b46a1e8_e0a2_e0e0_e50b_4991b6a5e8f3 -->|method| 91d7c04c_78df_5079_c536_a87d3e68b6fb

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java lines 584–603

    private static final class TestEventExecutor extends SingleThreadEventExecutor {
        TestEventExecutor() {
            super(null, Executors.defaultThreadFactory(), true);
        }

        @Override
        protected void run() {
            for (;;) {
                Runnable task = takeTask();
                if (task != null) {
                    task.run();
                    updateLastExecutionTime();
                }

                if (confirmShutdown()) {
                    break;
                }
            }
        }
    }

Frequently Asked Questions

What is the TestEventExecutor class?
TestEventExecutor is a class in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java.
Where is TestEventExecutor defined?
TestEventExecutor is defined in common/src/test/java/io/netty/util/concurrent/DefaultPromiseTest.java at line 584.

Analyze Your Own Codebase

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

Try Supermodel Free