Package org.teiid.net.socket
Class DefaultHostnameResolver
- java.lang.Object
-
- org.teiid.net.socket.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 Summary
Constructors Constructor Description DefaultHostnameResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolve(InetAddress addr, int timeoutMillis)
Resolve the given address in the given milliseconds or return null if it's not possible
-
-
-
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:
-
-