Interface SocketAddressResolver

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  SocketAddressResolver.Async
      Creates InetSocketAddress instances asynchronously in a different thread.
      static class  SocketAddressResolver.Sync
      Creates InetSocketAddress instances synchronously in the caller thread.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void resolve​(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
      Resolves via DNS the given host and port, within the connect timeout, returning a list of InetSocketAddress through the given Promise.
    • Method Detail

      • resolve

        void resolve​(java.lang.String host,
                     int port,
                     Promise<java.util.List<java.net.InetSocketAddress>> promise)
        Resolves via DNS the given host and port, within the connect timeout, returning a list of InetSocketAddress through the given Promise.
        Parameters:
        host - the host to resolve
        port - the port of the resulting socket address
        promise - the callback invoked when the resolution succeeds or fails