Interface NameResolver<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes all the resources allocated and used by this resolver.
      io.netty.util.concurrent.Future<T> resolve​(String inetHost)
      Resolves the specified name into an address.
      io.netty.util.concurrent.Future<T> resolve​(String inetHost, io.netty.util.concurrent.Promise<T> promise)
      Resolves the specified name into an address.
      io.netty.util.concurrent.Future<List<T>> resolveAll​(String inetHost)
      Resolves the specified host name and port into a list of address.
      io.netty.util.concurrent.Future<List<T>> resolveAll​(String inetHost, io.netty.util.concurrent.Promise<List<T>> promise)
      Resolves the specified host name and port into a list of address.
    • Method Detail

      • resolve

        io.netty.util.concurrent.Future<T> resolve​(String inetHost)
        Resolves the specified name into an address.
        Parameters:
        inetHost - the name to resolve
        Returns:
        the address as the result of the resolution
      • resolve

        io.netty.util.concurrent.Future<T> resolve​(String inetHost,
                                                   io.netty.util.concurrent.Promise<T> promise)
        Resolves the specified name into an address.
        Parameters:
        inetHost - the name to resolve
        promise - the Promise which will be fulfilled when the name resolution is finished
        Returns:
        the address as the result of the resolution
      • resolveAll

        io.netty.util.concurrent.Future<List<T>> resolveAll​(String inetHost)
        Resolves the specified host name and port into a list of address.
        Parameters:
        inetHost - the name to resolve
        Returns:
        the list of the address as the result of the resolution
      • resolveAll

        io.netty.util.concurrent.Future<List<T>> resolveAll​(String inetHost,
                                                            io.netty.util.concurrent.Promise<List<T>> promise)
        Resolves the specified host name and port into a list of address.
        Parameters:
        inetHost - the name to resolve
        promise - the Promise which will be fulfilled when the name resolution is finished
        Returns:
        the list of the address as the result of the resolution
      • close

        void close()
        Closes all the resources allocated and used by this resolver.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable