Home / Function/ gracefulShutdownAfterStart() — netty Function Reference

gracefulShutdownAfterStart() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2d5aa692_75dd_63d1_8349_df49dffdb982["gracefulShutdownAfterStart()"]
  eb487d77_b896_e5c3_20f1_2b7144dc7cf5["AbstractSingleThreadEventLoopTest"]
  2d5aa692_75dd_63d1_8349_df49dffdb982 -->|defined in| eb487d77_b896_e5c3_20f1_2b7144dc7cf5
  742665b9_81e7_1404_f4ce_86ea73f54955["assertRejection()"]
  2d5aa692_75dd_63d1_8349_df49dffdb982 -->|calls| 742665b9_81e7_1404_f4ce_86ea73f54955
  style 2d5aa692_75dd_63d1_8349_df49dffdb982 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/AbstractSingleThreadEventLoopTest.java lines 166–187

    @Test
    public void gracefulShutdownAfterStart() throws Exception {
        EventLoop loop = newEventLoopGroup().next();
        final CountDownLatch latch = new CountDownLatch(1);
        loop.execute(new Runnable() {
            @Override
            public void run() {
                latch.countDown();
            }
        });

        // Wait for the event loop thread to start.
        latch.await();

        // Request the event loop thread to stop.
        loop.shutdownGracefully(200L, 3000L, TimeUnit.MILLISECONDS);

        // Wait until the event loop is terminated.
        assertTrue(loop.awaitTermination(500L, TimeUnit.MILLISECONDS));

        assertRejection(loop);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free