Package org.eclipse.jetty.util
Interface SocketAddressResolver
- All Known Implementing Classes:
SocketAddressResolver.Async
,SocketAddressResolver.Sync
public interface SocketAddressResolver
Creates SocketAddress
instances, returning them through a Promise
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
CreatesInetSocketAddress
instances asynchronously in a different thread.static class
CreatesInetSocketAddress
instances synchronously in the caller thread. -
Method Summary
Modifier and TypeMethodDescriptionvoid
resolve
(String host, int port, Promise<List<InetSocketAddress>> promise) Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddress
through the givenPromise
.
-
Method Details
-
resolve
Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddress
through the givenPromise
.- Parameters:
host
- the host to resolveport
- the port of the resulting socket addresspromise
- the callback invoked when the resolution succeeds or fails
-