Home / Function/ notifyClosePromise() — netty Function Reference

notifyClosePromise() — netty Function Reference

Architecture documentation for the notifyClosePromise() function in SslHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b9490323_35d0_98b8_338b_728f1490d032["notifyClosePromise()"]
  d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1["SslHandler"]
  b9490323_35d0_98b8_338b_728f1490d032 -->|defined in| d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1
  77203d11_11d9_72c2_a4ab_2655756047e4["handlerRemoved0()"]
  77203d11_11d9_72c2_a4ab_2655756047e4 -->|calls| b9490323_35d0_98b8_338b_728f1490d032
  ee9ebef7_de5e_961a_f4a2_5ce80b4344bd["channelInactive()"]
  ee9ebef7_de5e_961a_f4a2_5ce80b4344bd -->|calls| b9490323_35d0_98b8_338b_728f1490d032
  51b61e7d_0f6d_53c7_ed6a_56a55b2ed5a7["unwrap()"]
  51b61e7d_0f6d_53c7_ed6a_56a55b2ed5a7 -->|calls| b9490323_35d0_98b8_338b_728f1490d032
  98e8f4ff_7549_ed31_b81e_c5e0677d1ae1["executeNotifyClosePromise()"]
  98e8f4ff_7549_ed31_b81e_c5e0677d1ae1 -->|calls| b9490323_35d0_98b8_338b_728f1490d032
  style b9490323_35d0_98b8_338b_728f1490d032 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/SslHandler.java lines 2094–2104

    private void notifyClosePromise(Throwable cause) {
        if (cause == null) {
            if (sslClosePromise.trySuccess(ctx.channel())) {
                ctx.fireUserEventTriggered(SslCloseCompletionEvent.SUCCESS);
            }
        } else {
            if (sslClosePromise.tryFailure(cause)) {
                ctx.fireUserEventTriggered(new SslCloseCompletionEvent(cause));
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does notifyClosePromise() do?
notifyClosePromise() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java.
Where is notifyClosePromise() defined?
notifyClosePromise() is defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java at line 2094.
What calls notifyClosePromise()?
notifyClosePromise() is called by 4 function(s): channelInactive, executeNotifyClosePromise, handlerRemoved0, unwrap.

Analyze Your Own Codebase

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

Try Supermodel Free