public interface NameResolver<T>
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
io.netty.util.concurrent.Future<T> |
resolve(java.lang.String inetHost)
Resolves the specified name into an address.
|
io.netty.util.concurrent.Future<T> |
resolve(java.lang.String inetHost,
io.netty.util.concurrent.Promise<T> promise)
Resolves the specified name into an address.
|
io.netty.util.concurrent.Future<java.util.List<T>> |
resolveAll(java.lang.String inetHost)
Resolves the specified host name and port into a list of address.
|
io.netty.util.concurrent.Future<java.util.List<T>> |
resolveAll(java.lang.String inetHost,
io.netty.util.concurrent.Promise<java.util.List<T>> promise)
Resolves the specified host name and port into a list of address.
|
io.netty.util.concurrent.Future<T> resolve(java.lang.String inetHost)
inetHost - the name to resolveio.netty.util.concurrent.Future<T> resolve(java.lang.String inetHost, io.netty.util.concurrent.Promise<T> promise)
inetHost - the name to resolvepromise - the Promise which will be fulfilled when the name resolution is finishedio.netty.util.concurrent.Future<java.util.List<T>> resolveAll(java.lang.String inetHost)
inetHost - the name to resolveio.netty.util.concurrent.Future<java.util.List<T>> resolveAll(java.lang.String inetHost, io.netty.util.concurrent.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 in interface java.lang.AutoCloseableclose in interface java.io.CloseableCopyright © 2018. All Rights Reserved.