Home / Class/ TestThreadFactory Class — netty Architecture

TestThreadFactory Class — netty Architecture

Architecture documentation for the TestThreadFactory class in SingleThreadEventExecutorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  03ab8ed9_6533_dbe4_a95f_a55de39d3d9d["TestThreadFactory"]
  68341706_e7dd_ee7e_305a_0cb38675254c["SingleThreadEventExecutorTest.java"]
  03ab8ed9_6533_dbe4_a95f_a55de39d3d9d -->|defined in| 68341706_e7dd_ee7e_305a_0cb38675254c
  26839c69_f043_23c5_b85f_1429f8cf8322["Thread()"]
  03ab8ed9_6533_dbe4_a95f_a55de39d3d9d -->|method| 26839c69_f043_23c5_b85f_1429f8cf8322

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java lines 76–84

    private static final class TestThreadFactory implements ThreadFactory {
        final LinkedBlockingQueue<TestThread> threads = new LinkedBlockingQueue<>();
        @Override
        public Thread newThread(@NotNull Runnable r) {
            TestThread thread = new TestThread(r);
            threads.add(thread);
            return thread;
        }
    }

Frequently Asked Questions

What is the TestThreadFactory class?
TestThreadFactory is a class in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java.
Where is TestThreadFactory defined?
TestThreadFactory is defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java at line 76.

Analyze Your Own Codebase

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

Try Supermodel Free