Top Fields Constructors Methods
io.netty.resolver.dns

public final Class NoopDnsCnameCache

extends Object
implements DnsCnameCache
Class Inheritance
All Implemented Interfaces
io.netty.resolver.dns.DnsCnameCache
Imports
io.netty.channel.EventLoop

Field Summary

Modifier and TypeField and Description
public static final NoopDnsCnameCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
cache(String
the hostname
hostname
,
String
the cname mapping.
cname
,
long
the TTL as returned by the DNS server
originalTtl
,
EventLoop
the EventLoop used to register the TTL timeout
loop
)

Implements io.netty.resolver.dns.DnsCnameCache.cache.

Caches a cname entry that should be used for the given hostname.
public void
clear()

Implements io.netty.resolver.dns.DnsCnameCache.clear.

Clears all cached nameservers.
public boolean
clear(String hostname)

Implements io.netty.resolver.dns.DnsCnameCache.clear.

Clears the cached nameservers for the specified hostname.
public String
get(String
the hostname
hostname
)

Implements io.netty.resolver.dns.DnsCnameCache.get.

Returns the cached cname for the given hostname.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoopDnsCnameCache INSTANCE

Constructor Detail

NoopDnsCnameCacheback to summary
private NoopDnsCnameCache()

Method Detail

cacheback to summary
public void cache(String hostname, String cname, long originalTtl, EventLoop loop)

Implements io.netty.resolver.dns.DnsCnameCache.cache.

Doc from io.netty.resolver.dns.DnsCnameCache.cache.

Caches a cname entry that should be used for the given hostname.

Parameters
hostname:String

the hostname

cname:String

the cname mapping.

originalTtl:long

the TTL as returned by the DNS server

loop:EventLoop

the EventLoop used to register the TTL timeout

Annotations
@Override
clearback to summary
public void clear()

Implements io.netty.resolver.dns.DnsCnameCache.clear.

Doc from io.netty.resolver.dns.DnsCnameCache.clear.

Clears all cached nameservers.

Annotations
@Override
clearback to summary
public boolean clear(String hostname)

Implements io.netty.resolver.dns.DnsCnameCache.clear.

Doc from io.netty.resolver.dns.DnsCnameCache.clear.

Clears the cached nameservers for the specified hostname.

Returns:boolean

true if and only if there was an entry for the specified host name in the cache and it has been removed by this method

Annotations
@Override
getback to summary
public String get(String hostname)

Implements io.netty.resolver.dns.DnsCnameCache.get.

Doc from io.netty.resolver.dns.DnsCnameCache.get.

Returns the cached cname for the given hostname.

Parameters
hostname:String

the hostname

Returns:String

the cached entries or an null if none.

Annotations
@Override