Home / Function/ shutdownGracefully() — netty Function Reference

shutdownGracefully() — netty Function Reference

Architecture documentation for the shutdownGracefully() function in ManualIoEventLoop.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  33e28e96_e0f5_3396_b09a_2c4e2f93a3e8["shutdownGracefully()"]
  6e8a7bbd_d782_0f59_8bd2_22f815f8ecad["ManualIoEventLoop"]
  33e28e96_e0f5_3396_b09a_2c4e2f93a3e8 -->|defined in| 6e8a7bbd_d782_0f59_8bd2_22f815f8ecad
  e1e5f93b_8032_a6be_b50a_57de4dda53f9["shutdown0()"]
  33e28e96_e0f5_3396_b09a_2c4e2f93a3e8 -->|calls| e1e5f93b_8032_a6be_b50a_57de4dda53f9
  24dad3df_e36d_3677_78dd_c65c774f9c15["terminationFuture()"]
  33e28e96_e0f5_3396_b09a_2c4e2f93a3e8 -->|calls| 24dad3df_e36d_3677_78dd_c65c774f9c15
  style 33e28e96_e0f5_3396_b09a_2c4e2f93a3e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ManualIoEventLoop.java lines 481–492

    @Override
    public final Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) {
        ObjectUtil.checkPositiveOrZero(quietPeriod, "quietPeriod");
        if (timeout < quietPeriod) {
            throw new IllegalArgumentException(
                    "timeout: " + timeout + " (expected >= quietPeriod (" + quietPeriod + "))");
        }
        ObjectUtil.checkNotNull(unit, "unit");

        shutdown0(unit.toNanos(quietPeriod), unit.toNanos(timeout), ST_SHUTTING_DOWN);
        return terminationFuture();
    }

Domain

Subdomains

Frequently Asked Questions

What does shutdownGracefully() do?
shutdownGracefully() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java.
Where is shutdownGracefully() defined?
shutdownGracefully() is defined in transport/src/main/java/io/netty/channel/ManualIoEventLoop.java at line 481.
What does shutdownGracefully() call?
shutdownGracefully() calls 2 function(s): shutdown0, terminationFuture.

Analyze Your Own Codebase

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

Try Supermodel Free