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
SocketAddressinstances 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 voidresolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)Resolves the given host and port, returning aSocketAddressthrough the givenPromisewith 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:SocketAddressResolverResolves the given host and port, returning aSocketAddressthrough the givenPromisewith the default timeout.- Specified by:
resolvein interfaceSocketAddressResolver- Parameters:
host- the host to resolveport- the port of the resulting socket addresspromise- the callback invoked when the resolution succeeds or fails
-
-