public interface NameResolver<T>
extends java.io.Closeable
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
Future<T> |
resolve(java.lang.String inetHost)
Resolves the specified name into an address.
|
Future<T> |
resolve(java.lang.String inetHost,
Promise<T> promise)
Resolves the specified name into an address.
|
Future<java.util.List<T>> |
resolveAll(java.lang.String inetHost)
Resolves the specified host name and port into a list of address.
|
Future<java.util.List<T>> |
resolveAll(java.lang.String inetHost,
Promise<java.util.List<T>> promise)
Resolves the specified host name and port into a list of address.
|
Future<T> resolve(java.lang.String inetHost)
inetHost
- the name to resolveFuture<T> resolve(java.lang.String inetHost, Promise<T> promise)
inetHost
- the name to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedFuture<java.util.List<T>> resolveAll(java.lang.String inetHost)
inetHost
- the name to resolveFuture<java.util.List<T>> resolveAll(java.lang.String inetHost, Promise<java.util.List<T>> promise)
inetHost
- the name to resolvepromise
- the Promise
which will be fulfilled when the name resolution is finishedvoid close()
close
在接口中 java.lang.AutoCloseable
close
在接口中 java.io.Closeable