@UnstableApi public interface NameResolver<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
Future<T> |
resolve(String inetHost)
Resolves the specified name into an address.
|
Future<T> |
resolve(String inetHost,
Promise<T> promise)
Resolves the specified name into an address.
|
Future<List<T>> |
resolveAll(String inetHost)
Resolves the specified host name and port into a list of address.
|
Future<List<T>> |
resolveAll(String inetHost,
Promise<List<T>> promise)
Resolves the specified host name and port into a list of address.
|
Future<T> resolve(String inetHost)
inetHost
- the name to resolveFuture<T> resolve(String inetHost, Promise<T> promise)
inetHost
- the name to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedFuture<List<T>> resolveAll(String inetHost)
inetHost
- the name to resolveFuture<List<T>> resolveAll(String inetHost, Promise<List<T>> promise)
inetHost
- the name to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2008–2017 The Netty Project. All rights reserved.