Home / Function/ shutdownDone() — netty Function Reference

shutdownDone() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e2a83b39_7f60_edfe_9453_963fc85840b9["shutdownDone()"]
  d154050d_32bb_fde7_fa64_5c82411c48d6["AbstractKQueueStreamChannel"]
  e2a83b39_7f60_edfe_9453_963fc85840b9 -->|defined in| d154050d_32bb_fde7_fa64_5c82411c48d6
  a5178868_81e6_43f7_a7a8_d2a9ecebd0a6["shutdownOutputDone()"]
  a5178868_81e6_43f7_a7a8_d2a9ecebd0a6 -->|calls| e2a83b39_7f60_edfe_9453_963fc85840b9
  style e2a83b39_7f60_edfe_9453_963fc85840b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java lines 487–503

    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-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java.
Where is shutdownDone() defined?
shutdownDone() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueStreamChannel.java at line 487.
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