Uses of Interface
org.eclipse.jetty.util.Promise
Package
Description
Jetty Http : Tools for Http processing
Jetty IO : Core classes for Jetty IO subsystem
Jetty Server : Core Handler API
Jetty Util : Common Utility Classes
-
Uses of Promise in org.eclipse.jetty.client
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
.void
HttpClient.newConnection
(Destination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.client.transport
Modifier and TypeMethodDescriptionvoid
HttpChannel.abort
(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure, Promise<Boolean> promise) void
void
void
HttpReceiver.abort
(HttpExchange exchange, Throwable failure, Promise<Boolean> promise) void
HttpSender.abort
(HttpExchange exchange, Throwable failure, Promise<Boolean> promise) void
HttpChannel.abortResponse
(HttpExchange exchange, Throwable failure, Promise<Boolean> promise) protected void
HttpDestination.createConnection
(Promise<Connection> promise) void
HttpDestination.newConnection
(Promise<Connection> promise) protected void
HttpReceiver.responseFailure
(Throwable failure, Promise<Boolean> promise) Method to be invoked when the response is failed. -
Uses of Promise in org.eclipse.jetty.client.transport.internal
Modifier and TypeMethodDescriptionprotected void
ModifierConstructorDescriptionHttpConnectionOverHTTP
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.fcgi.client.transport
Modifier and TypeMethodDescriptionprotected Connection
HttpClientTransportOverFCGI.newConnection
(EndPoint endPoint, Destination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.fcgi.client.transport.internal
Modifier and TypeMethodDescriptionprotected void
HttpChannelOverFCGI.responseFailure
(Throwable failure, Promise<Boolean> promise) protected void
HttpReceiverOverFCGI.responseFailure
(Throwable failure, Promise<Boolean> promise) ModifierConstructorDescriptionHttpConnectionOverFCGI
(EndPoint endPoint, Destination destination, Promise<Connection> promise) -
Uses of Promise in org.eclipse.jetty.http
Modifier and TypeMethodDescriptionvoid
MultiPartFormData.Parser.parse
(Content.Source content, Promise<MultiPartFormData.Parts> immediate, Promise.Invocable<MultiPartFormData.Parts> future) -
Uses of Promise in org.eclipse.jetty.http2
Modifier and TypeMethodDescriptionvoid
HTTP2Session.newStream
(HeadersFrame frame, Promise<Stream> promise, Stream.Listener listener) void
HTTP2Session.newStream
(HTTP2Stream.FrameList frames, Promise<Stream> promise, Stream.Listener listener) HTTP2Channel.Client.onTimeout
(TimeoutException failure, Promise<Boolean> promise) void
HTTP2Session.push
(Stream stream, Promise<Stream> promise, PushPromiseFrame frame, Stream.Listener listener) void
HTTP2Stream.push
(PushPromiseFrame frame, Promise<Stream> promise, Stream.Listener listener) -
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
.default void
Stream.Listener.onIdleTimeout
(Stream stream, TimeoutException x, Promise<Boolean> promise) Callback method invoked when the stream exceeds its idle timeout.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
(Transport transport, SocketChannel channel, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.accept
(SslContextFactory.Client 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
(Transport transport, SocketAddress address, ClientConnectionFactory factory, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) void
HTTP2Client.connect
(Transport transport, SslContextFactory.Client sslContextFactory, SocketAddress address, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) void
HTTP2Client.connect
(SslContextFactory.Client sslContextFactory, SocketAddress address, Session.Listener listener, Promise<Session> promise) void
HTTP2Client.connect
(SslContextFactory.Client sslContextFactory, SocketAddress address, Session.Listener listener, Promise<Session> promise, Map<String, Object> context) -
Uses of Promise in org.eclipse.jetty.http2.client.transport
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.http2.client.transport.internal
Modifier and TypeMethodDescriptionClientHTTP2StreamEndPoint.onTimeout
(TimeoutException timeout, Promise<Boolean> promise) HttpReceiverOverHTTP2.onTimeout
(TimeoutException failure, Promise<Boolean> promise) -
Uses of Promise in org.eclipse.jetty.http2.server
Modifier and TypeMethodDescriptionvoid
HTTP2ServerConnectionFactory.HTTPServerSessionListener.onIdleTimeout
(Stream stream, TimeoutException x, Promise<Boolean> promise) -
Uses of Promise in org.eclipse.jetty.http2.server.internal
Modifier and TypeMethodDescriptionvoid
HTTP2ServerConnection.onStreamTimeout
(Stream stream, TimeoutException timeout, Promise<Boolean> promise) -
Uses of Promise in org.eclipse.jetty.http3
Modifier and TypeMethodDescriptionprotected abstract void
HTTP3Stream.notifyIdleTimeout
(TimeoutException timeout, Promise<Boolean> promise) -
Uses of Promise in org.eclipse.jetty.http3.api
Modifier and TypeMethodDescriptiondefault void
Stream.Client.Listener.onIdleTimeout
(Stream.Client stream, Throwable failure, Promise<Boolean> promise) Callback method invoked when the stream idle timeout elapses.default void
Stream.Server.Listener.onIdleTimeout
(Stream.Server stream, TimeoutException failure, Promise<Boolean> promise) Callback method invoked when the stream idle timeout elapses. -
Uses of Promise in org.eclipse.jetty.http3.client
Modifier and TypeMethodDescriptionprotected void
HTTP3StreamClient.notifyIdleTimeout
(TimeoutException timeout, Promise<Boolean> promise) ModifierConstructorDescriptionClientHTTP3Session
(HTTP3Configuration configuration, ClientQuicSession quicSession, Session.Client.Listener listener, Promise<Session.Client> promise) HTTP3SessionClient
(ClientHTTP3Session session, Session.Client.Listener listener, Promise<Session.Client> promise) -
Uses of Promise in org.eclipse.jetty.io
Modifier and TypeMethodDescriptionstatic void
Content.Source.asByteBuffer
(Content.Source source, Promise<ByteBuffer> promise) Reads, non-blocking, the whole content source into aByteBuffer
.static void
Content.Source.asString
(Content.Source source, Charset charset, Promise<String> promise) -
Uses of Promise in org.eclipse.jetty.io.internal
ModifierConstructorDescriptionContentSourceByteBuffer
(Content.Source source, Promise<ByteBuffer> promise) ContentSourceString
(Content.Source content, Charset charset, Promise<String> promise) -
Uses of Promise in org.eclipse.jetty.server.handler
Modifier and TypeMethodDescriptionprotected void
ConnectHandler.connectToServer
(Request request, String host, int port, Promise<SocketChannel> promise) -
Uses of Promise in org.eclipse.jetty.util
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Modifier and TypeClassDescriptionclass
static class
Empty implementation ofPromise
.static class
A CompletableFuture that is also a Promise.static class
Promise.Task<T>
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()
static <T> Promise<T>
Promise.noop()
Promise.Wrapper.unwrap()
Modifier and TypeMethodDescriptionstatic <C> Promise.Invocable<C>
Create anPromise.Invocable
that isInvocable.InvocationType.NON_BLOCKING
because it executes the callbacksstatic <C> Promise.Invocable<C>
Promise.from
(Invocable.InvocationType invocationType, Promise<C> promise) Create anPromise.Invocable
void
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) Modifier and TypeMethodDescriptionstatic <R> Promise.Completable<R>
Creates a newCompletable
to be consumed by the givenconsumer
, then returns the newly createdCompletable
.