Home / Function/ tryPromise() — netty Function Reference

tryPromise() — netty Function Reference

Architecture documentation for the tryPromise() function in Http2CodecUtil.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  1df80efb_eee7_d0dc_d199_f67d78d9f517["tryPromise()"]
  813242d1_b443_a14c_2a77_4049dd5cb9eb["SimpleChannelPromiseAggregator"]
  1df80efb_eee7_d0dc_d199_f67d78d9f517 -->|defined in| 813242d1_b443_a14c_2a77_4049dd5cb9eb
  a5922733_5084_9339_61b4_ce2859f55045["tryFailure()"]
  a5922733_5084_9339_61b4_ce2859f55045 -->|calls| 1df80efb_eee7_d0dc_d199_f67d78d9f517
  43c2ecae_9083_852e_3e39_d2a0e7c5a17b["trySuccess()"]
  43c2ecae_9083_852e_3e39_d2a0e7c5a17b -->|calls| 1df80efb_eee7_d0dc_d199_f67d78d9f517
  43c2ecae_9083_852e_3e39_d2a0e7c5a17b["trySuccess()"]
  1df80efb_eee7_d0dc_d199_f67d78d9f517 -->|calls| 43c2ecae_9083_852e_3e39_d2a0e7c5a17b
  a5922733_5084_9339_61b4_ce2859f55045["tryFailure()"]
  1df80efb_eee7_d0dc_d199_f67d78d9f517 -->|calls| a5922733_5084_9339_61b4_ce2859f55045
  style 1df80efb_eee7_d0dc_d199_f67d78d9f517 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java lines 380–388

        private boolean tryPromise() {
            if (aggregateFailure == null) {
                promise.trySuccess();
                return super.trySuccess(null);
            } else {
                promise.tryFailure(aggregateFailure);
                return super.tryFailure(aggregateFailure);
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does tryPromise() do?
tryPromise() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java.
Where is tryPromise() defined?
tryPromise() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java at line 380.
What does tryPromise() call?
tryPromise() calls 2 function(s): tryFailure, trySuccess.
What calls tryPromise()?
tryPromise() is called by 2 function(s): tryFailure, trySuccess.

Analyze Your Own Codebase

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

Try Supermodel Free