public interface AddressResolver<T extends java.net.SocketAddress>
extends java.io.Closeable
SocketAddress.| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
boolean |
isResolved(java.net.SocketAddress address)
Returns
true if and only if the specified address has been resolved. |
boolean |
isSupported(java.net.SocketAddress address)
Returns
true if and only if the specified address is supported by this resolved. |
Future<T> |
resolve(java.net.SocketAddress address)
Resolves the specified address.
|
Future<T> |
resolve(java.net.SocketAddress address,
Promise<T> promise)
Resolves the specified address.
|
Future<java.util.List<T>> |
resolveAll(java.net.SocketAddress address)
Resolves the specified address.
|
Future<java.util.List<T>> |
resolveAll(java.net.SocketAddress address,
Promise<java.util.List<T>> promise)
Resolves the specified address.
|
boolean isSupported(java.net.SocketAddress address)
true if and only if the specified address is supported by this resolved.boolean isResolved(java.net.SocketAddress address)
true if and only if the specified address has been resolved.java.nio.channels.UnsupportedAddressTypeException - if the specified address is not supported by this resolverFuture<T> resolve(java.net.SocketAddress address)
address - the address to resolveSocketAddress as the result of the resolutionFuture<T> resolve(java.net.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 resolutionFuture<java.util.List<T>> resolveAll(java.net.SocketAddress address)
address - the address to resolveSocketAddresses as the result of the resolutionFuture<java.util.List<T>> resolveAll(java.net.SocketAddress address, Promise<java.util.List<T>> promise)
address - the address to resolvepromise - the Promise which will be fulfilled when the name resolution is finishedSocketAddresses as the result of the resolutionvoid close()
close 在接口中 java.lang.AutoCloseableclose 在接口中 java.io.Closeable