Class DnsJavaResolver

    • Constructor Detail

      • DnsJavaResolver

        public DnsJavaResolver()
        Deprecated.
    • Method Detail

      • clearDNSCache

        public void clearDNSCache()
        Deprecated.
        Description copied from interface: AdvancedHostResolver
        Clears both the positive (successful DNS lookups) and negative (failed DNS lookups) cache.
        Specified by:
        clearDNSCache in interface AdvancedHostResolver
      • setPositiveDNSCacheTimeout

        public void setPositiveDNSCacheTimeout​(int timeout,
                                               java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
        Description copied from interface: AdvancedHostResolver
        Sets the positive (successful DNS lookup) timeout when making DNS lookups. Note: The timeUnit parameter does not guarantee the specified precision; implementations may need to reduce precision, depending on the underlying DNS implementation. For example, the Oracle JVM's DNS cache only supports timeouts in whole seconds, so specifying a timeout of 1200ms will result in a timeout of 1 second.
        Specified by:
        setPositiveDNSCacheTimeout in interface AdvancedHostResolver
        Parameters:
        timeout - maximum lookup time
        timeUnit - units of the timeout value
      • setNegativeDNSCacheTimeout

        public void setNegativeDNSCacheTimeout​(int timeout,
                                               java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
        Description copied from interface: AdvancedHostResolver
        Sets the negative (failed DNS lookup) timeout when making DNS lookups. Note: The timeUnit parameter does not guarantee the specified precision; implementations may need to reduce precision, depending on the underlying DNS implementation. For example, the Oracle JVM's DNS cache only supports timeouts in whole seconds, so specifying a timeout of 1200ms will result in a timeout of 1 second.
        Specified by:
        setNegativeDNSCacheTimeout in interface AdvancedHostResolver
        Parameters:
        timeout - maximum lookup time
        timeUnit - units of the timeout value
      • resolveRemapped

        public java.util.Collection<java.net.InetAddress> resolveRemapped​(java.lang.String remappedHost)
        Deprecated.
        Description copied from class: AbstractHostNameRemapper
        Resolves the specified remapped host. Subclasses should provide resolution by implementing this method, rather than overriding HostResolver.resolve(String).
        Specified by:
        resolveRemapped in class AbstractHostNameRemapper
        Parameters:
        remappedHost - remapped hostname to resolve
        Returns:
        resolved InetAddresses, or an empty list if no addresses were found
      • resolveHostByType

        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.
        Parameters:
        host - hostname to resolve
        type - one of Type, typically Type.A (IPv4) or Type.AAAA (IPv6).
        Returns:
        resolved addresses, or an empty collection if no addresses could be resolved