Uses of Interface
org.eclipse.jetty.util.Promise
Package
Description
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
Jetty Client : API Classes
Jetty Proxy : Async Proxy Support
Jetty Util : Common Utility Classes
-
Uses of Promise in org.eclipse.jetty.client
Modifier and TypeMethodDescriptionprotected void
HttpDestination.createConnection
(Promise<Connection> promise) protected void
HttpClient.newConnection
(HttpDestination destination, Promise<Connection> promise) void
HttpDestination.newConnection
(Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.client.api
Modifier and TypeMethodDescriptionvoid
Destination.newConnection
(Promise<Connection> promise) Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
. -
Uses of Promise in org.eclipse.jetty.client.http
ModifierConstructorDescriptionHttpConnectionOverHTTP
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.fcgi.client.http
Modifier and TypeMethodDescriptionprotected HttpConnectionOverFCGI
HttpClientTransportOverFCGI.newHttpConnection
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) ModifierConstructorDescriptionHttpConnectionOverFCGI
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.http2
Modifier and TypeMethodDescriptionvoid
HTTP2Session.newStream
(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener) void
HTTP2Session.newStream
(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener) void
ISession.newStream
(IStream.FrameList frames, Promise<Stream> promise, Stream.Listener listener) Sends the given list of frames to create a newStream
.void
HTTP2Session.push
(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener) void
HTTP2Stream.push
(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener) void
ISession.push
(IStream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener) Enqueues the given PUSH_PROMISE frame to be written to the connection. -
Uses of Promise in org.eclipse.jetty.http2.api
Modifier and TypeMethodDescriptionvoid
Session.newStream
(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener) Sends the given HEADERSframe
to create a newStream
.void
Stream.push
(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener) Sends the given PUSH_PROMISEframe
. -
Uses of Promise in org.eclipse.jetty.http2.client
Modifier and TypeMethodDescriptionvoid
HTTP2Client.accept
(SocketChannel channel, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.accept
(SslContextFactory sslContextFactory, SocketChannel channel, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.connect
(SocketAddress address, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.connect
(SocketAddress address, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) void
HTTP2Client.connect
(SslContextFactory sslContextFactory, SocketAddress address, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.connect
(SslContextFactory sslContextFactory, SocketAddress address, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) -
Uses of Promise in org.eclipse.jetty.http2.client.http
Modifier and TypeMethodDescriptionprotected void
HttpClientTransportOverHTTP2.connect
(InetSocketAddress address, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) protected void
HttpClientTransportOverHTTP2.connect
(SocketAddress address, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) -
Uses of Promise in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionprotected void
ConnectHandler.connectToServer
(jakarta.servlet.http.HttpServletRequest request, String host, int port, Promise<SocketChannel> promise) -
Uses of Promise in org.eclipse.jetty.util
Modifier and TypeClassDescriptionclass
static class
Empty implementation ofPromise
.static class
A CompletableFuture that is also a Promise.static class
Modifier and TypeMethodDescriptionstatic <T> Promise<T>
Promise.from
(CompletableFuture<? super T> completable) Creates a promise from the given incomplete CompletableFuture.static <T> Promise<T>
Creates a Promise from the given success and failure consumers.Promise.Wrapper.getPromise()
Promise.Wrapper.unwrap()
Modifier and TypeMethodDescriptionvoid
SocketAddressResolver.Async.resolve
(String host, int port, Promise<List<InetSocketAddress>> promise) void
SocketAddressResolver.resolve
(String host, int port, Promise<List<InetSocketAddress>> promise) Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddress
through the givenPromise
.void
SocketAddressResolver.Sync.resolve
(String host, int port, Promise<List<InetSocketAddress>> promise)