Class CompositeNameResolver<T>

java.lang.Object
io.netty.resolver.SimpleNameResolver<T>
io.netty.resolver.CompositeNameResolver<T>
All Implemented Interfaces:
NameResolver<T>, java.io.Closeable, java.lang.AutoCloseable

public final class CompositeNameResolver<T> extends SimpleNameResolver<T>
A composite SimpleNameResolver that resolves a host name against a sequence of NameResolvers. In case of a failure, only the last one will be reported.
  • Field Details

  • Constructor Details

  • Method Details

    • doResolve

      protected void doResolve(java.lang.String inetHost, Promise<T> promise) throws java.lang.Exception
      Description copied from class: SimpleNameResolver
      Invoked by SimpleNameResolver.resolve(String) to perform the actual name resolution.
      Specified by:
      doResolve in class SimpleNameResolver<T>
      Throws:
      java.lang.Exception
    • doResolveRec

      private void doResolveRec(java.lang.String inetHost, Promise<T> promise, int resolverIndex, java.lang.Throwable lastFailure) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • doResolveAll

      protected void doResolveAll(java.lang.String inetHost, Promise<java.util.List<T>> promise) throws java.lang.Exception
      Description copied from class: SimpleNameResolver
      Invoked by SimpleNameResolver.resolveAll(String) to perform the actual name resolution.
      Specified by:
      doResolveAll in class SimpleNameResolver<T>
      Throws:
      java.lang.Exception
    • doResolveAllRec

      private void doResolveAllRec(java.lang.String inetHost, Promise<java.util.List<T>> promise, int resolverIndex, java.lang.Throwable lastFailure) throws java.lang.Exception
      Throws:
      java.lang.Exception