Home / Function/ trySuccess() — netty Function Reference

trySuccess() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  738e53db_fa0c_bab7_c0bc_3e1950d94c3f["trySuccess()"]
  4db353b5_b84b_a5f5_1955_3d37fb42003e["PromiseNotificationUtil"]
  738e53db_fa0c_bab7_c0bc_3e1950d94c3f -->|defined in| 4db353b5_b84b_a5f5_1955_3d37fb42003e
  style 738e53db_fa0c_bab7_c0bc_3e1950d94c3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java lines 47–58

    public static <V> void trySuccess(Promise<? super V> p, V result, InternalLogger logger) {
        if (!p.trySuccess(result) && logger != null) {
            Throwable err = p.cause();
            if (err == null) {
                logger.warn("Failed to mark a promise as success because it has succeeded already: {}", p);
            } else {
                logger.warn(
                        "Failed to mark a promise as success because it has failed already: {}, unnotified cause:",
                        p, err);
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does trySuccess() do?
trySuccess() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java.
Where is trySuccess() defined?
trySuccess() is defined in common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free