public static class SocketAddressResolver.Sync extends Object implements SocketAddressResolver
Creates SocketAddress instances synchronously in the caller thread.
SocketAddressResolver.Async, SocketAddressResolver.Sync| Constructor and Description |
|---|
SocketAddressResolver.Sync() |
| Modifier and Type | Method and Description |
|---|---|
void |
resolve(String host,
int port,
Promise<SocketAddress> promise)
Resolves the given host and port, returning a
SocketAddress through the given Promise
with the default timeout. |
public void resolve(String host, int port, Promise<SocketAddress> 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-2018 Webtide. All Rights Reserved.