SocketAddressResolver.Async, SocketAddressResolver.Syncpublic interface SocketAddressResolver
Creates SocketAddress instances, returning them through a Promise.
| Modifier and Type | Interface | 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 | 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. |
void resolve(java.lang.String host,
int port,
Promise<java.util.List<java.net.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–2018 Webtide. All rights reserved.