| Modifier and Type | Field and Description |
|---|---|
static NoopDnsCache |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
cache(String hostname,
DnsRecord[] additional,
InetAddress address,
long originalTtl,
EventLoop loop)
Cache a resolved address for a given hostname.
|
void |
cache(String hostname,
DnsRecord[] additional,
Throwable cause,
EventLoop loop)
Cache the resolution failure for a given hostname.
|
void |
clear()
Clears all the resolved addresses cached by this resolver.
|
boolean |
clear(String hostname)
Clears the resolved addresses of the specified host name from the cache of this resolver.
|
List<DnsCacheEntry> |
get(String hostname,
DnsRecord[] additionals)
Return the cached entries for the given hostname.
|
String |
toString() |
public static final NoopDnsCache INSTANCE
public void clear()
DnsCacheclear in interface DnsCacheDnsCache.clear(String)public boolean clear(String hostname)
DnsCachepublic List<DnsCacheEntry> get(String hostname, DnsRecord[] additionals)
DnsCachepublic void cache(String hostname, DnsRecord[] additional, InetAddress address, long originalTtl, EventLoop loop)
DnsCachepublic void cache(String hostname, DnsRecord[] additional, Throwable cause, EventLoop loop)
DnsCacheCopyright © 2008–2017 The Netty Project. All rights reserved.