Home / Function/ trySuccess() — netty Function Reference

trySuccess() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2a3cee87_1d7f_e127_faf9_4222d043bc36["trySuccess()"]
  a8faea52_3f45_7b36_4918_3dfb9bd6ee9b["DnsNameResolver"]
  2a3cee87_1d7f_e127_faf9_4222d043bc36 -->|defined in| a8faea52_3f45_7b36_4918_3dfb9bd6ee9b
  0dd3efe7_f28e_9bd8_2716_5be45ed56586["resolveAll()"]
  0dd3efe7_f28e_9bd8_2716_5be45ed56586 -->|calls| 2a3cee87_1d7f_e127_faf9_4222d043bc36
  67c8f913_6867_6c2c_3d36_a54dbc7484f6["doResolveCached()"]
  67c8f913_6867_6c2c_3d36_a54dbc7484f6 -->|calls| 2a3cee87_1d7f_e127_faf9_4222d043bc36
  495e6f3e_fd8f_4c49_8cf2_c9316bf78b03["doResolveUncached()"]
  495e6f3e_fd8f_4c49_8cf2_c9316bf78b03 -->|calls| 2a3cee87_1d7f_e127_faf9_4222d043bc36
  6620d649_610e_f6f5_90da_fe7f679440b9["doResolveAllCached()"]
  6620d649_610e_f6f5_90da_fe7f679440b9 -->|calls| 2a3cee87_1d7f_e127_faf9_4222d043bc36
  style 2a3cee87_1d7f_e127_faf9_4222d043bc36 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java lines 1083–1092

    static <T> boolean trySuccess(Promise<T> promise, T result) {
        final boolean notifiedRecords = promise.trySuccess(result);
        if (!notifiedRecords) {
            // There is nothing really wrong with not be able to notify the promise as we may have raced here because
            // of multiple queries that have been executed. Log it with trace level anyway just in case the user
            // wants to better understand what happened.
            logger.trace("Failed to notify success ({}) to a promise: {}", result, promise);
        }
        return notifiedRecords;
    }

Subdomains

Frequently Asked Questions

What does trySuccess() do?
trySuccess() is a function in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java.
Where is trySuccess() defined?
trySuccess() is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java at line 1083.
What calls trySuccess()?
trySuccess() is called by 4 function(s): doResolveAllCached, doResolveCached, doResolveUncached, resolveAll.

Analyze Your Own Codebase

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

Try Supermodel Free