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 SocketAddressResolver
SocketAddressResolver.Async, SocketAddressResolver.Sync - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidresolve(String host, int port, Map<String, Object> context, Promise<List<InetSocketAddress>> promise) Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddressthrough the givenPromise. 
- 
Constructor Details
- 
Sync
public Sync() 
 - 
 - 
Method Details
- 
resolve
public void resolve(String host, int port, Map<String, Object> context, Promise<List<InetSocketAddress>> promise) Description copied from interface:SocketAddressResolverResolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddressthrough the givenPromise.- Specified by:
 resolvein interfaceSocketAddressResolver- Parameters:
 host- the host to resolveport- the port of the resulting socket addresscontext- the context informationpromise- the callback invoked when the resolution succeeds or fails
 
 -