public interface AddressResolver<T extends java.net.SocketAddress>
extends java.io.Closeable
SocketAddress.| Modifier and Type | Method and Description |
|---|---|
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. |
io.netty.util.concurrent.Future<T> |
resolve(java.net.SocketAddress address)
Resolves the specified address.
|
io.netty.util.concurrent.Future<T> |
resolve(java.net.SocketAddress address,
io.netty.util.concurrent.Promise<T> promise)
Resolves the specified address.
|
io.netty.util.concurrent.Future<java.util.List<T>> |
resolveAll(java.net.SocketAddress address)
Resolves the specified address.
|
io.netty.util.concurrent.Future<java.util.List<T>> |
resolveAll(java.net.SocketAddress address,
io.netty.util.concurrent.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 resolverio.netty.util.concurrent.Future<T> resolve(java.net.SocketAddress address)
address - the address to resolveSocketAddress as the result of the resolutionio.netty.util.concurrent.Future<T> resolve(java.net.SocketAddress address, io.netty.util.concurrent.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 resolutionio.netty.util.concurrent.Future<java.util.List<T>> resolveAll(java.net.SocketAddress address)
address - the address to resolveSocketAddresses as the result of the resolutionio.netty.util.concurrent.Future<java.util.List<T>> resolveAll(java.net.SocketAddress address, io.netty.util.concurrent.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 in interface java.lang.AutoCloseableclose in interface java.io.CloseableCopyright © 2018. All Rights Reserved.