AuthoritativeDnsServerCache Type — netty Architecture
Architecture documentation for the AuthoritativeDnsServerCache type/interface in AuthoritativeDnsServerCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0b093fe0_0de7_e332_7be2_1bc530f42355["AuthoritativeDnsServerCache"] a6344d7c_0ca0_c83b_b48a_459a0c60ac92["AuthoritativeDnsServerCache.java"] 0b093fe0_0de7_e332_7be2_1bc530f42355 -->|defined in| a6344d7c_0ca0_c83b_b48a_459a0c60ac92 style 0b093fe0_0de7_e332_7be2_1bc530f42355 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/main/java/io/netty/resolver/dns/AuthoritativeDnsServerCache.java lines 25–61
public interface AuthoritativeDnsServerCache {
/**
* Returns the cached nameservers that should be used to resolve the given hostname. The returned
* {@link DnsServerAddressStream} may contain unresolved {@link InetSocketAddress}es that will be resolved
* when needed while resolving other domain names.
*
* @param hostname the hostname
* @return the cached entries or an {@code null} if none.
*/
DnsServerAddressStream get(String hostname);
/**
* Caches a nameserver that should be used to resolve the given hostname.
*
* @param hostname the hostname
* @param address the nameserver address (which may be unresolved).
* @param originalTtl the TTL as returned by the DNS server
* @param loop the {@link EventLoop} used to register the TTL timeout
*/
void cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop);
/**
* Clears all cached nameservers.
*
* @see #clear(String)
*/
void clear();
/**
* Clears the cached nameservers for the specified hostname.
*
* @return {@code true} if and only if there was an entry for the specified host name in the cache and
* it has been removed by this method
*/
boolean clear(String hostname);
}
Source
Frequently Asked Questions
What is the AuthoritativeDnsServerCache type?
AuthoritativeDnsServerCache is a type/interface in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/AuthoritativeDnsServerCache.java.
Where is AuthoritativeDnsServerCache defined?
AuthoritativeDnsServerCache is defined in resolver-dns/src/main/java/io/netty/resolver/dns/AuthoritativeDnsServerCache.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free