Home / Function/ shutdownDone() — netty Function Reference

shutdownDone() — netty Function Reference

Architecture documentation for the shutdownDone() function in AbstractEpollStreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a2a1c652_04c3_27b9_b39b_26b5a89f378e["shutdownDone()"]
  6ec314cd_b42f_72bd_344b_f54212398142["AbstractEpollStreamChannel"]
  a2a1c652_04c3_27b9_b39b_26b5a89f378e -->|defined in| 6ec314cd_b42f_72bd_344b_f54212398142
  a25c79ab_5c24_9273_a3b7_d1d437bfdff7["shutdownOutputDone()"]
  a25c79ab_5c24_9273_a3b7_d1d437bfdff7 -->|calls| a2a1c652_04c3_27b9_b39b_26b5a89f378e
  style a2a1c652_04c3_27b9_b39b_26b5a89f378e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 656–672

    private static void shutdownDone(ChannelFuture shutdownOutputFuture,
                              ChannelFuture shutdownInputFuture,
                              ChannelPromise promise) {
        Throwable shutdownOutputCause = shutdownOutputFuture.cause();
        Throwable shutdownInputCause = shutdownInputFuture.cause();
        if (shutdownOutputCause != null) {
            if (shutdownInputCause != null) {
                logger.debug("Exception suppressed because a previous exception occurred.",
                        shutdownInputCause);
            }
            promise.setFailure(shutdownOutputCause);
        } else if (shutdownInputCause != null) {
            promise.setFailure(shutdownInputCause);
        } else {
            promise.setSuccess();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does shutdownDone() do?
shutdownDone() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is shutdownDone() defined?
shutdownDone() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 656.
What calls shutdownDone()?
shutdownDone() is called by 1 function(s): shutdownOutputDone.

Analyze Your Own Codebase

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

Try Supermodel Free