| Modifier and Type | Method and Description |
|---|---|
| public DnsCacheEntry | Returns: TheDnsCacheEntry corresponding to this cache entry.the hostname hostname, DnsRecord[] the additional records additionals, InetAddress the resolved address address, long the TTL as returned by the DNS server originalTtl, EventLoop the loop)EventLoop used to register the TTL timeoutCreate a new |
| public DnsCacheEntry | Returns: TheDnsCacheEntry corresponding to this cache entry, or null if this cache doesn't
support caching failed responses.the hostname hostname, DnsRecord[] the additional records additionals, Throwable the resolution failure cause, EventLoop the loop)EventLoop used to register the TTL timeoutCache the resolution failure for a given hostname. |
| public void | |
| public boolean | |
| public List |
| cache | back to summary |
|---|---|
| public DnsCacheEntry cache(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop) Create a new
| |
| cache | back to summary |
|---|---|
| public DnsCacheEntry cache(String hostname, DnsRecord[] additionals, Throwable cause, EventLoop loop) 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() Clears all the resolved addresses cached by this resolver.
| |
| clear | back to summary |
|---|---|
| public boolean clear(String hostname) Clears the resolved addresses of the specified host name from the cache of this resolver.
| |
| get | back to summary |
|---|---|
| public List Return the cached entries for the given hostname.
| |