Package org.eclipse.jetty.util
Class SocketAddressResolver.Sync
java.lang.Object
org.eclipse.jetty.util.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 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.SocketAddressResolver
SocketAddressResolver.Async, SocketAddressResolver.Sync -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidresolve(String host, int port, Promise<List<InetSocketAddress>> promise) Deprecated.Resolves the given host and port, returning aSocketAddressthrough the givenPromisewith the default timeout.
-
Constructor Details
-
Sync
public Sync()Deprecated.
-
-
Method Details
-
resolve
Deprecated.Description copied from interface:SocketAddressResolverResolves the given host and port, returning aSocketAddressthrough the givenPromisewith the default timeout.- Specified by:
resolvein interfaceSocketAddressResolver- Parameters:
host- the host to resolveport- the port of the resulting socket addresspromise- the callback invoked when the resolution succeeds or fails
-