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 java.lang.Object implements SocketAddressResolver
Creates
SocketAddress
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
Constructors Constructor Description Sync()
-
Method Summary
All Methods Instance Methods Concrete 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
public void resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Description copied from interface:SocketAddressResolver
Resolves the given host and port, returning aSocketAddress
through the givenPromise
with the default timeout.- 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
-
-