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 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.SocketAddressResolver
SocketAddressResolver.Async, SocketAddressResolver.Sync
-
-
Constructor Summary
Constructors Constructor Description Sync()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
resolve(java.lang.String host, int port, Promise<java.util.List<java.net.InetSocketAddress>> promise)
Deprecated.Resolves the given host and port, returning aSocketAddress
through the givenPromise
with the default timeout.
-
-
-
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 aSocketAddress
through the givenPromise
with the default timeout.- Specified by:
resolve
in interfaceSocketAddressResolver
- Parameters:
host
- the host to resolveport
- the port of the resulting socket addresspromise
- the callback invoked when the resolution succeeds or fails
-
-