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 the given host and port, returning a SocketAddress through the given Promise with the default timeout.
      • 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 the given host and port, returning a SocketAddress through the given Promise with the default timeout.
        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