Class DefaultHostnameResolver


  • public class DefaultHostnameResolver
    extends Object
    Due to https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6450279 and similar, attempts to call hostname resolution may block for considerable amounts of time rather than require workarounds on the host system, this class will handle making the call asynchronous.
    • Constructor Detail

      • DefaultHostnameResolver

        public DefaultHostnameResolver()
    • Method Detail

      • resolve

        public String resolve​(InetAddress addr,
                              int timeoutMillis)
        Resolve the given address in the given milliseconds or return null if it's not possible
        Parameters:
        addr -
        timeoutMillis -
        Returns: