Package org.eclipse.jetty.util
Class SocketAddressResolver.Sync
java.lang.Object
org.eclipse.jetty.util.SocketAddressResolver.Sync
- All Implemented Interfaces:
SocketAddressResolver
- Enclosing interface:
- SocketAddressResolver
@ManagedObject("The synchronous address resolver")
public static class SocketAddressResolver.Sync
extends Object
implements SocketAddressResolver
Creates InetSocketAddress
instances synchronously in the caller thread.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.SocketAddressResolver
SocketAddressResolver.Async, SocketAddressResolver.Sync
-
Constructor Summary
-
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
.
-
Constructor Details
-
Sync
public Sync()
-
-
Method Details
-
resolve
Description copied from interface:SocketAddressResolver
Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddress
through the givenPromise
.- Specified by:
resolve
in interfaceSocketAddressResolver
- Parameters:
host
- the host to resolveport
- the port of the resulting socket addresspromise
- the callback invoked when the resolution succeeds or fails
-