RedirectAuthoritativeDnsServerCache Class — netty Architecture
Architecture documentation for the RedirectAuthoritativeDnsServerCache class in DnsResolveContext.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a2bfd0f7_8824_3bb9_cdb9_8768767c398d["RedirectAuthoritativeDnsServerCache"] 21f3aef4_24fe_7168_ea1d_94d7a3f45711["DnsResolveContext.java"] a2bfd0f7_8824_3bb9_cdb9_8768767c398d -->|defined in| 21f3aef4_24fe_7168_ea1d_94d7a3f45711 93a40ce7_7165_d46c_564b_b6ed3aa0fc68["RedirectAuthoritativeDnsServerCache()"] a2bfd0f7_8824_3bb9_cdb9_8768767c398d -->|method| 93a40ce7_7165_d46c_564b_b6ed3aa0fc68 04b4f70e_cb5c_9691_eb91_f5318c230638["DnsServerAddressStream()"] a2bfd0f7_8824_3bb9_cdb9_8768767c398d -->|method| 04b4f70e_cb5c_9691_eb91_f5318c230638 5bf22230_c3ef_65b2_6c3e_52542d42ffb3["cache()"] a2bfd0f7_8824_3bb9_cdb9_8768767c398d -->|method| 5bf22230_c3ef_65b2_6c3e_52542d42ffb3 7ebfe09d_8025_9ac7_88e8_4b95a11a272c["clear()"] a2bfd0f7_8824_3bb9_cdb9_8768767c398d -->|method| 7ebfe09d_8025_9ac7_88e8_4b95a11a272c
Relationship Graph
Source Code
resolver-dns/src/main/java/io/netty/resolver/dns/DnsResolveContext.java lines 580–608
private static final class RedirectAuthoritativeDnsServerCache implements AuthoritativeDnsServerCache {
private final AuthoritativeDnsServerCache wrapped;
RedirectAuthoritativeDnsServerCache(AuthoritativeDnsServerCache authoritativeDnsServerCache) {
wrapped = authoritativeDnsServerCache;
}
@Override
public DnsServerAddressStream get(String hostname) {
// To not risk falling into any loop, we will not use the cache while following redirects but only
// on the initial query.
return null;
}
@Override
public void cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) {
wrapped.cache(hostname, address, originalTtl, loop);
}
@Override
public void clear() {
wrapped.clear();
}
@Override
public boolean clear(String hostname) {
return wrapped.clear(hostname);
}
}
Source
Frequently Asked Questions
What is the RedirectAuthoritativeDnsServerCache class?
RedirectAuthoritativeDnsServerCache is a class in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsResolveContext.java.
Where is RedirectAuthoritativeDnsServerCache defined?
RedirectAuthoritativeDnsServerCache is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsResolveContext.java at line 580.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free