public interface SocketAddressResolver
Creates SocketAddress instances, returning them through a Promise.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SocketAddressResolver.Async
Creates
SocketAddress instances asynchronously in a different thread. |
static class |
SocketAddressResolver.Sync
Creates
SocketAddress instances synchronously in the caller thread. |
| Modifier and Type | Method and Description |
|---|---|
void |
resolve(String host,
int port,
Promise<List<InetSocketAddress>> promise)
Resolves the given host and port, returning a
SocketAddress through the given Promise
with the default timeout. |
void resolve(String host, int port, Promise<List<InetSocketAddress>> promise)
SocketAddress through the given Promise
with the default timeout.host - the host to resolveport - the port of the resulting socket addresspromise - the callback invoked when the resolution succeeds or failsCopyright © 1995-2016 Webtide. All Rights Reserved.