Home / Function/ shutdown() — netty Function Reference

shutdown() — netty Function Reference

Architecture documentation for the shutdown() function in ThreadPerChannelEventLoopGroup.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f2a3df96_17cc_dbf8_9da8_93ad7b0c9adf["shutdown()"]
  087189b8_1bd9_3f4f_71bf_da2f9e819990["ThreadPerChannelEventLoopGroup"]
  f2a3df96_17cc_dbf8_9da8_93ad7b0c9adf -->|defined in| 087189b8_1bd9_3f4f_71bf_da2f9e819990
  33d8df27_6974_99b5_3395_981893ea763a["isTerminated()"]
  f2a3df96_17cc_dbf8_9da8_93ad7b0c9adf -->|calls| 33d8df27_6974_99b5_3395_981893ea763a
  style f2a3df96_17cc_dbf8_9da8_93ad7b0c9adf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ThreadPerChannelEventLoopGroup.java lines 179–195

    @Override
    @Deprecated
    public void shutdown() {
        shuttingDown = true;

        for (EventLoop l: activeChildren) {
            l.shutdown();
        }
        for (EventLoop l: idleChildren) {
            l.shutdown();
        }

        // Notify the future if there was no children.
        if (isTerminated()) {
            terminationFuture.trySuccess(null);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does shutdown() do?
shutdown() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ThreadPerChannelEventLoopGroup.java.
Where is shutdown() defined?
shutdown() is defined in transport/src/main/java/io/netty/channel/ThreadPerChannelEventLoopGroup.java at line 179.
What does shutdown() call?
shutdown() calls 1 function(s): isTerminated.

Analyze Your Own Codebase

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

Try Supermodel Free