AuthoritativeDnsServerCache implementation which delegates all operations to a wrapped DnsCache.
This implementation is only present to preserve a upgrade story.
| Modifier and Type | Field and Description |
|---|---|
| private final DnsCache | |
| private static final DnsRecord[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cache(String
the hostname hostname, InetSocketAddress the nameserver address (which may be unresolved). address, long the TTL as returned by the DNS server originalTtl, EventLoop the loop)EventLoop used to register the TTL timeoutImplements io. |
| public void | clear()
Implements io. |
| public boolean | clear(String hostname)
Implements io. |
| public DnsServerAddressStream | get(String
the hostname hostname)Implements io. |
| cache | back to summary |
|---|---|
| private final DnsCache cache | |
| EMPTY | back to summary |
|---|---|
| private static final DnsRecord[] EMPTY | |
| AuthoritativeDnsServerCacheAdapter | back to summary |
|---|---|
| pack-priv AuthoritativeDnsServerCacheAdapter(DnsCache cache) | |
| cache | back to summary |
|---|---|
| public void cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) Implements io. Doc from io. Caches a nameserver that should be used to resolve the given hostname.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Clears all cached nameservers.
| |
| clear | back to summary |
|---|---|
| public boolean clear(String hostname) Implements io. Doc from io. Clears the cached nameservers for the specified hostname.
| |
| get | back to summary |
|---|---|
| public DnsServerAddressStream get(String hostname) Implements io. Doc from io. Returns the cached nameservers that should be used to resolve the given hostname. The returned
| |