Home / Function/ tryFailure() — netty Function Reference

tryFailure() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java lines 1094–1101

    private static void tryFailure(Promise<?> promise, Throwable cause) {
        if (!promise.tryFailure(cause)) {
            // 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 failure to a promise: {}", promise, cause);
        }
    }

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free