Home / Class/ TestEventLoopGroup Class — netty Architecture

TestEventLoopGroup Class — netty Architecture

Architecture documentation for the TestEventLoopGroup class in BootstrapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  29ecd182_424d_3cf0_a7ba_202fee06413f["TestEventLoopGroup"]
  e9ee9a00_988f_9508_1e47_b48bd2b962d3["BootstrapTest.java"]
  29ecd182_424d_3cf0_a7ba_202fee06413f -->|defined in| e9ee9a00_988f_9508_1e47_b48bd2b962d3
  be3f678c_5460_042e_17d7_4c0d5f273e01["TestEventLoopGroup()"]
  29ecd182_424d_3cf0_a7ba_202fee06413f -->|method| be3f678c_5460_042e_17d7_4c0d5f273e01
  54241a80_d872_030a_0ff4_4917d990c08d["ChannelFuture()"]
  29ecd182_424d_3cf0_a7ba_202fee06413f -->|method| 54241a80_d872_030a_0ff4_4917d990c08d
  041f42b3_2dd3_5247_4328_2f0dcb8dfe42["EventLoop()"]
  29ecd182_424d_3cf0_a7ba_202fee06413f -->|method| 041f42b3_2dd3_5247_4328_2f0dcb8dfe42

Relationship Graph

Source Code

transport/src/test/java/io/netty/bootstrap/BootstrapTest.java lines 530–559

    private static final class TestEventLoopGroup extends MultithreadEventLoopGroup {

        ChannelPromise promise;

        TestEventLoopGroup() {
            super(1, (ThreadFactory) null);
        }

        @Override
        public ChannelFuture register(Channel channel) {
            super.register(channel).syncUninterruptibly();
            promise = channel.newPromise();
            return promise;
        }

        @Override
        public ChannelFuture register(ChannelPromise promise) {
            throw new UnsupportedOperationException();
        }

        @Override
        public ChannelFuture register(Channel channel, final ChannelPromise promise) {
            throw new UnsupportedOperationException();
        }

        @Override
        protected EventLoop newChild(Executor executor, Object... args) throws Exception {
            return new DefaultEventLoop(executor);
        }
    }

Frequently Asked Questions

What is the TestEventLoopGroup class?
TestEventLoopGroup is a class in the netty codebase, defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java.
Where is TestEventLoopGroup defined?
TestEventLoopGroup is defined in transport/src/test/java/io/netty/bootstrap/BootstrapTest.java at line 530.

Analyze Your Own Codebase

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

Try Supermodel Free