| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final NoopDnsCache |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DnsCacheEntry | cache(String
the hostname hostname, DnsRecord[] the additional records additional, InetAddress the resolved address address, long the TTL as returned by the DNS server originalTtl, EventLoop the loop)EventLoop used to register the TTL timeoutImplements io. DnsCacheEntry and cache a resolved address for a given hostname.
|
| public DnsCacheEntry | |
| public void | clear()
Implements io. |
| public boolean | clear(String hostname)
Implements io. |
| public List | get(String
the hostname hostname, DnsRecord[] the additional records additionals)Implements io. |
| public String |
| INSTANCE | back to summary |
|---|---|
| public static final NoopDnsCache INSTANCE | |
| NoopDnsCache | back to summary |
|---|---|
| private NoopDnsCache() Private singleton constructor. | |
| cache | back to summary |
|---|---|
| public DnsCacheEntry cache(String hostname, DnsRecord[] additional, InetAddress address, long originalTtl, EventLoop loop) Implements io. Doc from io. Create a new
| |
| cache | back to summary |
|---|---|
| public DnsCacheEntry cache(String hostname, DnsRecord[] additional, Throwable cause, EventLoop loop) Implements io. Doc from io. Cache the resolution failure for a given hostname. Be aware this won't be called with timeout / cancel / transport exceptions.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Clears all the resolved addresses cached by this resolver.
| |
| clear | back to summary |
|---|---|
| public boolean clear(String hostname) Implements io. Doc from io. Clears the resolved addresses of the specified host name from the cache of this resolver.
| |
| get | back to summary |
|---|---|
| public List Implements io. Doc from io. Return the cached entries for the given hostname.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final InetAddress |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public InetAddress | |
| public Throwable | cause()
Implements io. |
| public String |
| address | back to summary |
|---|---|
| private final InetAddress address | |
| NoopDnsCacheEntry | back to summary |
|---|---|
| pack-priv NoopDnsCacheEntry(InetAddress address) | |
| address | back to summary |
|---|---|
| public InetAddress address() Implements io. Doc from io. Get the resolved address.
This may be null if the resolution failed, and in that case
| |
| cause | back to summary |
|---|---|
| public Throwable cause() Implements io. Doc from io. If the DNS query failed this will provide the rational. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |