public final class CompositeNameResolver<T> extends SimpleNameResolver<T>
SimpleNameResolver
that resolves a host name against a sequence of NameResolver
s.
In case of a failure, only the last one will be reported.构造器和说明 |
---|
CompositeNameResolver(EventExecutor executor,
NameResolver<T>... resolvers) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
doResolve(java.lang.String inetHost,
Promise<T> promise)
Invoked by
SimpleNameResolver.resolve(String) to perform the actual name resolution. |
protected void |
doResolveAll(java.lang.String inetHost,
Promise<java.util.List<T>> promise)
Invoked by
SimpleNameResolver.resolveAll(String) to perform the actual name resolution. |
close, executor, resolve, resolve, resolveAll, resolveAll
public CompositeNameResolver(EventExecutor executor, NameResolver<T>... resolvers)
executor
- the EventExecutor
which is used to notify the listeners of the Future
returned
by SimpleNameResolver.resolve(String)
resolvers
- the NameResolver
s to be tried sequentiallyprotected void doResolve(java.lang.String inetHost, Promise<T> promise) throws java.lang.Exception
SimpleNameResolver
SimpleNameResolver.resolve(String)
to perform the actual name resolution.doResolve
在类中 SimpleNameResolver<T>
java.lang.Exception
protected void doResolveAll(java.lang.String inetHost, Promise<java.util.List<T>> promise) throws java.lang.Exception
SimpleNameResolver
SimpleNameResolver.resolveAll(String)
to perform the actual name resolution.doResolveAll
在类中 SimpleNameResolver<T>
java.lang.Exception