public interface AddressResolver<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<List<T>> |
resolveAll(SocketAddress address)
Resolves the specified address.
|
Future<List<T>> |
resolveAll(SocketAddress address,
Promise<List<T>> promise)
Resolves the specified address.
|
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(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 resolutionFuture<List<T>> resolveAll(SocketAddress address)
address
- the address to resolveSocketAddress
es as the result of the resolutionFuture<List<T>> resolveAll(SocketAddress address, Promise<List<T>> promise)
address
- the address to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedSocketAddress
es as the result of the resolutionvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2008–2024 The Netty Project. All rights reserved.