SimpleNameResolver that resolves a host name against a sequence of NameResolvers.
In case of a failure, only the last one will be reported.
| Modifier and Type | Field and Description |
|---|---|
| private final NameResolver |
| Access | Constructor and Description |
|---|---|
| public | CompositeNameResolver(EventExecutor executor, NameResolver<T>...
the resolvers)NameResolvers to be tried sequentially
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | doResolve(String inetHost, Promise<T> promise)
Implements abstract io. resolve(String) to perform the actual name resolution.
|
| protected void | doResolveAll(String inetHost, Promise<List<T>> promise)
Implements abstract io. resolveAll(String) to perform the actual name resolution.
|
| private void | doResolveAllRec(final String inetHost, final Promise<List<T>> promise, final int resolverIndex, Throwable lastFailure)
|
| private void | doResolveRec(final String inetHost, final Promise<T> promise, final int resolverIndex, Throwable lastFailure)
|
| resolvers | back to summary |
|---|---|
| private final NameResolver<T>[] resolvers | |
| CompositeNameResolver | back to summary |
|---|---|
public CompositeNameResolver(EventExecutor executor, NameResolver<T>... resolvers)
| |
| doResolve | back to summary |
|---|---|
| protected void doResolve(String inetHost, Promise<T> promise) throws Exception Implements abstract io. Doc from io. Invoked by
| |
| doResolveAll | back to summary |
|---|---|
| protected void doResolveAll(String inetHost, Promise<List<T>> promise) throws Exception Implements abstract io. Doc from io. Invoked by
| |
| doResolveAllRec | back to summary |
|---|---|
| private void doResolveAllRec(final String inetHost, final Promise<List<T>> promise, final int resolverIndex, Throwable lastFailure) throws Exception | |
| doResolveRec | back to summary |
|---|---|
| private void doResolveRec(final String inetHost, final Promise<T> promise, final int resolverIndex, Throwable lastFailure) throws Exception | |