AuthoritativeDnsServerCache that actually never caches anything.
| Modifier and Type | Field and Description |
|---|---|
| public static final NoopAuthoritativeDnsServerCache |
| Access | Constructor and Description |
|---|---|
| private |
| 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. |
| INSTANCE | back to summary |
|---|---|
| public static final NoopAuthoritativeDnsServerCache INSTANCE | |
| NoopAuthoritativeDnsServerCache | back to summary |
|---|---|
| private NoopAuthoritativeDnsServerCache() | |
| 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
| |