Package io.netty.resolver.dns
Class DnsResolveContext.AuthoritativeNameServerList
- java.lang.Object
-
- io.netty.resolver.dns.DnsResolveContext.AuthoritativeNameServerList
-
- Enclosing class:
- DnsResolveContext<T>
private static final class DnsResolveContext.AuthoritativeNameServerList extends java.lang.ObjectHolds the closed DNS Servers for a domain.
-
-
Field Summary
Fields Modifier and Type Field Description private DnsResolveContext.AuthoritativeNameServerheadprivate intnameServerCountprivate java.lang.StringquestionName
-
Constructor Summary
Constructors Constructor Description AuthoritativeNameServerList(java.lang.String questionName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(DnsRecord r)(package private) java.util.List<java.net.InetSocketAddress>addressList()Creates a newListwhich holds theInetSocketAddresses.private static voidcache(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop)private static voidcacheUnresolved(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache authoritativeCache, EventLoop loop)(package private) voidhandleWithAdditional(DnsNameResolver parent, DnsRecord r, AuthoritativeDnsServerCache authoritativeCache)(package private) voidhandleWithoutAdditionals(DnsNameResolver parent, DnsCache cache, AuthoritativeDnsServerCache authoritativeCache)(package private) booleanisEmpty()Returnstrueif empty,falseotherwise.
-
-
-
Field Detail
-
questionName
private final java.lang.String questionName
-
head
private DnsResolveContext.AuthoritativeNameServer head
-
nameServerCount
private int nameServerCount
-
-
Method Detail
-
add
void add(DnsRecord r)
-
handleWithAdditional
void handleWithAdditional(DnsNameResolver parent, DnsRecord r, AuthoritativeDnsServerCache authoritativeCache)
-
handleWithoutAdditionals
void handleWithoutAdditionals(DnsNameResolver parent, DnsCache cache, AuthoritativeDnsServerCache authoritativeCache)
-
cacheUnresolved
private static void cacheUnresolved(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache authoritativeCache, EventLoop loop)
-
cache
private static void cache(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop)
-
isEmpty
boolean isEmpty()
Returnstrueif empty,falseotherwise.
-
addressList
java.util.List<java.net.InetSocketAddress> addressList()
Creates a newListwhich holds theInetSocketAddresses.
-
-