Home / Class/ TestThreadFactory Class — netty Architecture

TestThreadFactory Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  4fbb62dd_63e8_8609_0c39_ce8af5459b26["TestThreadFactory"]
  e1570af9_af6d_987e_8115_c6e9e15ab1f4["SingleThreadIoEventLoopTest.java"]
  4fbb62dd_63e8_8609_0c39_ce8af5459b26 -->|defined in| e1570af9_af6d_987e_8115_c6e9e15ab1f4
  4bb94d41_64b5_e6e0_892f_cc892a84e009["Thread()"]
  4fbb62dd_63e8_8609_0c39_ce8af5459b26 -->|method| 4bb94d41_64b5_e6e0_892f_cc892a84e009

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/SingleThreadIoEventLoopTest.java lines 69–77

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

Frequently Asked Questions

What is the TestThreadFactory class?
TestThreadFactory is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/SingleThreadIoEventLoopTest.java.
Where is TestThreadFactory defined?
TestThreadFactory is defined in transport/src/test/java/io/netty/channel/SingleThreadIoEventLoopTest.java at line 69.

Analyze Your Own Codebase

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

Try Supermodel Free