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(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–2023 Webtide. All rights reserved.