public interface NameResolver<T extends SocketAddress> extends Closeable
SocketAddress
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
boolean |
isResolved(SocketAddress address)
Returns
true if and only if the specified address has been resolved. |
boolean |
isSupported(SocketAddress address)
Returns
true if and only if the specified address is supported by this resolved. |
Future<T> |
resolve(SocketAddress address)
Resolves the specified address.
|
Future<T> |
resolve(SocketAddress address,
Promise<T> promise)
Resolves the specified address.
|
Future<T> |
resolve(String inetHost,
int inetPort)
Resolves the specified name into a
SocketAddress . |
Future<T> |
resolve(String inetHost,
int inetPort,
Promise<T> promise)
Resolves the specified name into a
SocketAddress . |
boolean isSupported(SocketAddress address)
true
if and only if the specified address is supported by this resolved.boolean isResolved(SocketAddress address)
true
if and only if the specified address has been resolved.UnsupportedAddressTypeException
- if the specified address is not supported by this resolverFuture<T> resolve(String inetHost, int inetPort)
SocketAddress
.inetHost
- the name to resolveinetPort
- the port numberSocketAddress
as the result of the resolutionFuture<T> resolve(String inetHost, int inetPort, Promise<T> promise)
SocketAddress
.inetHost
- the name to resolveinetPort
- the port numberpromise
- the Promise
which will be fulfilled when the name resolution is finishedSocketAddress
as the result of the resolutionFuture<T> resolve(SocketAddress address)
address
- the address to resolveSocketAddress
as the result of the resolutionFuture<T> resolve(SocketAddress address, Promise<T> promise)
address
- the address to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedSocketAddress
as the result of the resolutionvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2008–2015 The Netty Project. All rights reserved.