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.Object
Holds the closed DNS Servers for a domain.
-
-
Field Summary
Fields Modifier and Type Field Description private DnsResolveContext.AuthoritativeNameServer
head
private int
nameServerCount
private java.lang.String
questionName
-
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) void
add(DnsRecord r)
(package private) java.util.List<java.net.InetSocketAddress>
addressList()
Creates a newList
which holds theInetSocketAddress
es.private static void
cache(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop)
private static void
cacheUnresolved(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache authoritativeCache, EventLoop loop)
(package private) void
handleWithAdditional(DnsNameResolver parent, DnsRecord r, AuthoritativeDnsServerCache authoritativeCache)
(package private) void
handleWithoutAdditionals(DnsNameResolver parent, DnsCache cache, AuthoritativeDnsServerCache authoritativeCache)
(package private) boolean
isEmpty()
Returnstrue
if empty,false
otherwise.
-
-
-
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()
Returnstrue
if empty,false
otherwise.
-
addressList
java.util.List<java.net.InetSocketAddress> addressList()
Creates a newList
which holds theInetSocketAddress
es.
-
-