DnsCnameCache Type — netty Architecture
Architecture documentation for the DnsCnameCache type/interface in DnsCnameCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5c97524d_86a7_67bd_14f8_295ea33d0d45["DnsCnameCache"] 0072288f_663a_1a03_d372_df21a1d5d9a1["DnsCnameCache.java"] 5c97524d_86a7_67bd_14f8_295ea33d0d45 -->|defined in| 0072288f_663a_1a03_d372_df21a1d5d9a1 style 5c97524d_86a7_67bd_14f8_295ea33d0d45 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver-dns/src/main/java/io/netty/resolver/dns/DnsCnameCache.java lines 23–57
public interface DnsCnameCache {
/**
* Returns the cached cname for the given hostname.
*
* @param hostname the hostname
* @return the cached entries or an {@code null} if none.
*/
String get(String hostname);
/**
* Caches a cname entry that should be used for the given hostname.
*
* @param hostname the hostname
* @param cname the cname mapping.
* @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, String cname, 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 DnsCnameCache type?
DnsCnameCache is a type/interface in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsCnameCache.java.
Where is DnsCnameCache defined?
DnsCnameCache is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsCnameCache.java at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free