Class SocketAddressResolver.Sync

  • All Implemented Interfaces:
    SocketAddressResolver
    Enclosing interface:
    SocketAddressResolver

    @ManagedObject("The synchronous address resolver")
    @Deprecated(since="2021-05-27")
    public static class SocketAddressResolver.Sync
    extends java.lang.Object
    implements SocketAddressResolver
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    Creates SocketAddress instances synchronously in the caller thread.

    • Constructor Detail

      • Sync

        public Sync()
        Deprecated.
    • Method Detail

      • resolve

        public void resolve​(java.lang.String host,
                            int port,
                            Promise<java.util.List<java.net.InetSocketAddress>> promise)
        Deprecated.
        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