Class NoopDnsCnameCache
java.lang.Object
io.netty.resolver.dns.NoopDnsCnameCache
- All Implemented Interfaces:
DnsCnameCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCaches a cname entry that should be used for the given hostname.voidclear()Clears all cached nameservers.booleanclear(java.lang.String hostname) Clears the cached nameservers for the specified hostname.java.lang.Stringget(java.lang.String hostname) Returns the cached cname for the given hostname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopDnsCnameCache
private NoopDnsCnameCache()
-
-
Method Details
-
get
public java.lang.String get(java.lang.String hostname) Description copied from interface:DnsCnameCacheReturns the cached cname for the given hostname.- Specified by:
getin interfaceDnsCnameCache- Parameters:
hostname- the hostname- Returns:
- the cached entries or an
nullif none.
-
cache
public void cache(java.lang.String hostname, java.lang.String cname, long originalTtl, EventLoop loop) Description copied from interface:DnsCnameCacheCaches a cname entry that should be used for the given hostname.- Specified by:
cachein interfaceDnsCnameCache- Parameters:
hostname- the hostnamecname- the cname mapping.originalTtl- the TTL as returned by the DNS serverloop- theEventLoopused to register the TTL timeout
-
clear
public void clear()Description copied from interface:DnsCnameCacheClears all cached nameservers.- Specified by:
clearin interfaceDnsCnameCache- See Also:
-
clear
public boolean clear(java.lang.String hostname) Description copied from interface:DnsCnameCacheClears the cached nameservers for the specified hostname.- Specified by:
clearin interfaceDnsCnameCache- Returns:
trueif and only if there was an entry for the specified host name in the cache and it has been removed by this method
-