Interface SocketAddressResolver
- All Known Implementing Classes:
 SocketAddressResolver.Async, SocketAddressResolver.Sync
public interface SocketAddressResolver
Creates SocketAddress instances, returning them through a Promise.
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCreatesInetSocketAddressinstances asynchronously in a different thread.static classCreatesInetSocketAddressinstances synchronously in the caller thread. - 
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. 
- 
Method Details
- 
resolve
void resolve(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.- 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
 
 -