Home / Function/ testShutdownGracefullyNoQuietPeriod() — netty Function Reference

testShutdownGracefullyNoQuietPeriod() — netty Function Reference

Architecture documentation for the testShutdownGracefullyNoQuietPeriod() function in AbstractSingleThreadEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cc6824c7_f166_8489_ce94_e326389a63c6["testShutdownGracefullyNoQuietPeriod()"]
  eb487d77_b896_e5c3_20f1_2b7144dc7cf5["AbstractSingleThreadEventLoopTest"]
  cc6824c7_f166_8489_ce94_e326389a63c6 -->|defined in| eb487d77_b896_e5c3_20f1_2b7144dc7cf5
  1d67f7d4_b966_60ed_92bb_3b8e091076df["serverChannelClass()"]
  cc6824c7_f166_8489_ce94_e326389a63c6 -->|calls| 1d67f7d4_b966_60ed_92bb_3b8e091076df
  style cc6824c7_f166_8489_ce94_e326389a63c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java lines 139–158

    @Test
    @Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
    public void testShutdownGracefullyNoQuietPeriod() throws Exception {
        EventLoopGroup loop = newEventLoopGroup();
        ServerBootstrap b = new ServerBootstrap();
        b.group(loop)
        .channel(serverChannelClass())
        .childHandler(new ChannelInboundHandlerAdapter());

        // Not close the Channel to ensure the EventLoop is still shutdown in time.
        ChannelFuture cf = serverChannelClass() == LocalServerChannel.class
                ? b.bind(new LocalAddress("local")) : b.bind(0);
        cf.sync().channel();

        Future<?> f = loop.shutdownGracefully(0, 1, TimeUnit.MINUTES);
        assertTrue(loop.awaitTermination(600, TimeUnit.MILLISECONDS));
        assertTrue(f.syncUninterruptibly().isSuccess());
        assertTrue(loop.isShutdown());
        assertTrue(loop.isTerminated());
    }

Domain

Subdomains

Frequently Asked Questions

What does testShutdownGracefullyNoQuietPeriod() do?
testShutdownGracefullyNoQuietPeriod() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java.
Where is testShutdownGracefullyNoQuietPeriod() defined?
testShutdownGracefullyNoQuietPeriod() is defined in testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java at line 139.
What does testShutdownGracefullyNoQuietPeriod() call?
testShutdownGracefullyNoQuietPeriod() calls 1 function(s): serverChannelClass.

Analyze Your Own Codebase

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

Try Supermodel Free