@Deprecated public class DnsJavaResolver extends AbstractHostNameRemapper implements AdvancedHostResolver
AdvancedHostResolver that uses dnsjava to perform DNS lookups. This implementation provides full
cache manipulation capabilities.| Constructor and Description |
|---|
DnsJavaResolver()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearDNSCache()
Deprecated.
Clears both the positive (successful DNS lookups) and negative (failed DNS lookups) cache.
|
protected java.util.Collection<java.net.InetAddress> |
resolveHostByType(java.lang.String host,
int type)
Deprecated.
Resolves the specified host using dnsjava, retrieving addresses of the specified type.
|
java.util.Collection<java.net.InetAddress> |
resolveRemapped(java.lang.String remappedHost)
Deprecated.
Resolves the specified remapped host.
|
void |
setNegativeDNSCacheTimeout(int timeout,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Sets the negative (failed DNS lookup) timeout when making DNS lookups.
|
void |
setPositiveDNSCacheTimeout(int timeout,
java.util.concurrent.TimeUnit timeUnit)
Deprecated.
Sets the positive (successful DNS lookup) timeout when making DNS lookups.
|
applyRemapping, clearHostRemappings, getHostRemappings, getOriginalHostnames, remapHost, remapHosts, removeHostRemapping, resolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearHostRemappings, getHostRemappings, getOriginalHostnames, remapHost, remapHosts, removeHostRemappingresolvepublic void clearDNSCache()
AdvancedHostResolverclearDNSCache in interface AdvancedHostResolverpublic void setPositiveDNSCacheTimeout(int timeout,
java.util.concurrent.TimeUnit timeUnit)
AdvancedHostResolversetPositiveDNSCacheTimeout in interface AdvancedHostResolvertimeout - maximum lookup timetimeUnit - units of the timeout valuepublic void setNegativeDNSCacheTimeout(int timeout,
java.util.concurrent.TimeUnit timeUnit)
AdvancedHostResolversetNegativeDNSCacheTimeout in interface AdvancedHostResolvertimeout - maximum lookup timetimeUnit - units of the timeout valuepublic java.util.Collection<java.net.InetAddress> resolveRemapped(java.lang.String remappedHost)
AbstractHostNameRemapperHostResolver.resolve(String).resolveRemapped in class AbstractHostNameRemapperremappedHost - remapped hostname to resolveprotected java.util.Collection<java.net.InetAddress> resolveHostByType(java.lang.String host,
int type)
host - hostname to resolvetype - one of Type, typically Type.A (IPv4) or Type.AAAA (IPv6).