Interface SocketAddressResolver

    • Method Detail

      • resolve

        void resolve​(String host,
                     int port,
                     Promise<List<InetSocketAddress>> promise)
        Resolves the given host and port, returning a SocketAddress through the given Promise with the default timeout.
        host - the host to resolve
        port - the port of the resulting socket address
        promise - the callback invoked when the resolution succeeds or fails