Package org.eclipse.jetty.util
Interface SocketAddressResolver
-
- All Known Implementing Classes:
SocketAddressResolver.Async
,SocketAddressResolver.Sync
public interface SocketAddressResolver
Creates
SocketAddress
instances, returning them through aPromise
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SocketAddressResolver.Async
CreatesSocketAddress
instances asynchronously in a different thread.static class
SocketAddressResolver.Sync
CreatesSocketAddress
instances synchronously in the caller thread.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Resolves the given host and port, returning aSocketAddress
through the givenPromise
with the default timeout.
-
-
-
Method Detail
-
resolve
void resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Resolves the given host and port, returning aSocketAddress
through the givenPromise
with the default timeout.- Parameters:
host
- the host to resolveport
- the port of the resulting socket addresspromise
- the callback invoked when the resolution succeeds or fails
-
-