Home / Function/ trySuccess() — netty Function Reference

trySuccess() — netty Function Reference

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

Function java Buffer Allocators calls 3 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java lines 344–356

        @Override
        public boolean trySuccess(Void result) {
            if (awaitingPromises()) {
                ++doneCount;
                if (allPromisesDone()) {
                    return tryPromise();
                }
                // TODO: We break the interface a bit here.
                // Multiple success events can be processed without issue because this is an aggregation.
                return true;
            }
            return false;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free