Class SocketAddressResolver.Sync

    • Constructor Summary

      Constructors 
      Constructor Description
      Sync()  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sync

        public Sync()
    • Method Detail

      • resolve

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