@UnstableApi 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. |
io.netty.util.concurrent.Future<T> |
resolve(SocketAddress address)
Resolves the specified address.
|
io.netty.util.concurrent.Future<T> |
resolve(SocketAddress address,
io.netty.util.concurrent.Promise<T> promise)
Resolves the specified address.
|
io.netty.util.concurrent.Future<List<T>> |
resolveAll(SocketAddress address)
Resolves the specified address.
|
io.netty.util.concurrent.Future<List<T>> |
resolveAll(SocketAddress address,
io.netty.util.concurrent.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 resolverio.netty.util.concurrent.Future<T> resolve(SocketAddress address)
address
- the address to resolveSocketAddress
as the result of the resolutionio.netty.util.concurrent.Future<T> resolve(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<List<T>> resolveAll(SocketAddress address)
address
- the address to resolveSocketAddress
es as the result of the resolutionio.netty.util.concurrent.Future<List<T>> resolveAll(SocketAddress address, io.netty.util.concurrent.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–2019 The Netty Project. All rights reserved.