public interface DnsCache
| Modifier and Type | Method and Description |
|---|---|
void |
cache(String hostname,
InetAddress address,
long originalTtl,
io.netty.channel.EventLoop loop)
Cache a resolved address for a given hostname.
|
void |
cache(String hostname,
Throwable cause,
io.netty.channel.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)
Return the cached entries for the given hostname.
|
void clear()
clear(String)boolean clear(String hostname)
true if and only if there was an entry for the specified host name in the cache and
it has been removed by this methodList<DnsCacheEntry> get(String hostname)
hostname - the hostnamevoid cache(String hostname, InetAddress address, long originalTtl, io.netty.channel.EventLoop loop)
hostname - the hostnameaddress - the resolved adresseoriginalTtl - the TLL as returned by the DNS serverloop - the EventLoop used to register the TTL timeoutCopyright © 2008–2016 The Netty Project. All rights reserved.