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.
SocketAddressResolver.Async, SocketAddressResolver.Sync| Constructor | Description |
|---|---|
Sync() |
| 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 a
SocketAddress through the given Promise
with the default timeout. |
public void resolve(java.lang.String host,
int port,
Promise<java.util.List<java.net.InetSocketAddress>> promise)
SocketAddressResolverSocketAddress through the given Promise
with the default timeout.resolve in interface SocketAddressResolverhost - the host to resolveport - the port of the resulting socket addresspromise - the callback invoked when the resolution succeeds or failsCopyright © 1995–2017 Webtide. All rights reserved.