Uses of Interface
org.eclipse.jetty.util.Promise.Invocable
Packages that use Promise.Invocable
Package
Description
Jetty Http : Tools for Http processing
This module contains the main abstractions for the QUIC protocol using the Quiche library.
Jetty Server : Core Server API
Jetty Util : Common Utility Classes
- 
Uses of Promise.Invocable in org.eclipse.jetty.http
Methods in org.eclipse.jetty.http with parameters of type Promise.InvocableModifier and TypeMethodDescriptionstatic voidMultiPartFormData.onParts(Content.Source content, Attributes attributes, String contentType, MultiPartConfig config, Promise.Invocable<MultiPartFormData.Parts> promise) Asynchronously getmultipart/form-dataMultiPartFormData.Partsfrom aContent.Source, caching the results in anAttributes.voidMultiPartFormData.Parser.parse(Content.Source content, Promise.Invocable<MultiPartFormData.Parts> promise) voidMultiPartFormData.Parser.parse(Content.Source content, Promise<MultiPartFormData.Parts> immediate, Promise.Invocable<MultiPartFormData.Parts> future) Deprecated, for removal: This API element is subject to removal in a future version. - 
Uses of Promise.Invocable in org.eclipse.jetty.http3
Methods in org.eclipse.jetty.http3 with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidHTTP3Session.close(long error, String reason, Promise.Invocable<Session> promise) Called when an external event wants to initiate the close of this session locally, for example a close at the network level (due to e.g. stopping a component) or a timeout.voidHTTP3Stream.data(DataFrame frame, Promise.Invocable<Stream> promise) voidHTTP3Stream.disconnect(long appErrorCode, Throwable failure, Promise.Invocable<Stream> promise) voidHTTP3Session.goAway(boolean graceful, Promise.Invocable<Session> promise) voidHTTP3Stream.trailer(HeadersFrame frame, Promise.Invocable<Stream> promise) protected voidHTTP3Stream.write(Frame frame, Promise.Invocable<Stream> promise) voidHTTP3Stream.writeFrame(Frame frame, Promise.Invocable<Stream> promise)  - 
Uses of Promise.Invocable in org.eclipse.jetty.http3.api
Methods in org.eclipse.jetty.http3.api with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidStream.data(DataFrame frame, Promise.Invocable<Stream> promise) Sends the given DATA frame containing some or all the bytes of the request content or of the response content.voidStream.disconnect(long appErrorCode, Throwable failure, Promise.Invocable<Stream> promise) Abruptly terminates this stream with the given error.default voidSession.goAway(boolean graceful, Promise.Invocable<Session> promise) Initiates the shutdown of this session by sending a GOAWAY frame to the other peer.voidSession.Client.newRequest(HeadersFrame frame, Stream.Client.Listener listener, Promise.Invocable<Stream> promise) Makes a request by creating an HTTP/3 stream and sending the given HEADERS frame.voidStream.Server.respond(HeadersFrame frame, Promise.Invocable<Stream> promise) Responds to a request performed viaSession.Client.newRequest(HeadersFrame, Client.Listener, Promise.Invocable), sending the given HEADERS frame containing the response status code and response headers.voidStream.trailer(HeadersFrame frame, Promise.Invocable<Stream> promise) Sends the given HEADERS frame containing the trailer headers. - 
Uses of Promise.Invocable in org.eclipse.jetty.http3.client
Methods in org.eclipse.jetty.http3.client with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidHTTP3Client.connect(Transport transport, SocketAddress socketAddress, Session.Client.Listener listener, Promise.Invocable<Session.Client> promise) Connect for HTTP/3, clear-text or intrinsically secure depending on theTransport.voidHTTP3Client.connect(Transport transport, SslContextFactory.Client sslContextFactory, SocketAddress socketAddress, Session.Client.Listener listener, Map<String, Object> context, Promise.Invocable<Session.Client> promise) voidHTTP3Client.connect(Transport transport, SslContextFactory.Client sslContextFactory, SocketAddress socketAddress, Session.Client.Listener listener, Promise.Invocable<Session.Client> promise) Connect for HTTP/3, clear-text, or secure, or intrinsically secure depending on theTransport.voidHTTP3SessionClient.newRequest(HeadersFrame frame, Stream.Client.Listener listener, Promise.Invocable<Stream> promise) Constructors in org.eclipse.jetty.http3.client with parameters of type Promise.InvocableModifierConstructorDescriptionHTTP3SessionClient(Scheduler scheduler, ProtocolSession session, Session.Client.Listener listener, Promise.Invocable<Session.Client> promise)  - 
Uses of Promise.Invocable in org.eclipse.jetty.quic.api
Methods in org.eclipse.jetty.quic.api with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidSession.close(ConnectionCloseFrame frame, Promise.Invocable<Session> promise) Closes this session with the givenCONNECTION_CLOSEframe.voidStream.data(boolean last, List<ByteBuffer> data, Promise.Invocable<Stream> promise) Sends a STREAM frame with the given data bytes and the indication of whether they are the last to be sent.voidStream.dataBlocked(long offset, Promise.Invocable<Stream> promise) Sends a STREAM_DATA_BLOCKED frame, with the given offset.voidSession.disconnect(ConnectionCloseFrame frame, Throwable failure, Promise.Invocable<Session> promise) Disconnects this session, with the givenCONNECTION_CLOSEand failure cause, if any.voidStream.disconnect(long appErrorCode, Throwable failure, Promise.Invocable<Stream> promise) Abruptly terminates this stream with the given error.voidSession.maxData(MaxDataFrame frame, Promise.Invocable<Session> promise) Sends a MAX_DATA frame on this connection.voidStream.maxData(long maxData, Promise.Invocable<Stream> promise) Sends a MAX_STREAM_DATA frame with the new total max data bytes that this peer is willing to receive.voidSession.maxStreams(MaxStreamsFrame frame, Promise.Invocable<Session> promise) Sends a MAX_STREAMS frame on this connection.default voidStream.Listener.onIdleTimeout(Stream stream, TimeoutException failure, Promise.Invocable<Boolean> promise) Invoked when the stream is idle for longer than the idle timeout.voidSession.ping(Promise.Invocable<Session> promise) Sends a PING frame on this connection.voidStream.reset(long appErrorCode, Promise.Invocable<Stream> promise) Sends a RESET_STREAM frame, with the given application error code.voidStream.stopSending(long appErrorCode, Promise.Invocable<Stream> promise) Sends a STOP_SENDING frame, with the given application error code. - 
Uses of Promise.Invocable in org.eclipse.jetty.quic.common
Methods in org.eclipse.jetty.quic.common with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidAbstractSession.close(ConnectionCloseFrame frame, Promise.Invocable<Session> promise) voidProtocolSession.close(ConnectionCloseFrame frame, Promise.Invocable<ProtocolSession> promise) Performs an inward close upon sending aCONNECTION_CLOSEframe.voidProtocolSession.disconnect(ConnectionCloseFrame frame, Throwable failure, Promise.Invocable<ProtocolSession> promise) Performs an outward disconnection.voidStreamEndPoint.disconnect(long appError, Throwable failure, boolean disconnectStream, Promise.Invocable<StreamEndPoint> promise) protected voidAbstractSession.notifyLocalClose(ConnectionCloseFrame frame, Promise.Invocable<Session> promise) voidProtocolStreamListener.onIdleTimeout(Stream stream, TimeoutException failure, Promise.Invocable<Boolean> promise) voidAbstractSession.Listener.onLocalClose(Session session, ConnectionCloseFrame frame, Promise.Invocable<Session> promise) voidStreamEndPoint.shutdownOutput(long appError, Promise.Invocable<StreamEndPoint> promise)  - 
Uses of Promise.Invocable in org.eclipse.jetty.quic.quiche
Methods in org.eclipse.jetty.quic.quiche with parameters of type Promise.InvocableModifier and TypeMethodDescriptionvoidQuicheStream.data(boolean last, List<ByteBuffer> buffers, Promise.Invocable<Stream> promise) voidQuicheStream.dataBlocked(long offset, Promise.Invocable<Stream> promise) voidQuicheSession.disconnect(ConnectionCloseFrame frame, Throwable failure, Promise.Invocable<Session> promise) voidQuicheStream.disconnect(long appErrorCode, Throwable failure, Promise.Invocable<Stream> promise) voidQuicheSession.maxData(MaxDataFrame frame, Promise.Invocable<Session> promise) voidQuicheStream.maxData(long maxData, Promise.Invocable<Stream> promise) voidQuicheSession.maxStreams(MaxStreamsFrame frame, Promise.Invocable<Session> promise) voidQuicheSession.ping(Promise.Invocable<Session> promise) voidQuicheStream.reset(long appErrorCode, Promise.Invocable<Stream> promise) voidQuicheStream.stopSending(long appErrorCode, Promise.Invocable<Stream> promise)  - 
Uses of Promise.Invocable in org.eclipse.jetty.server
Methods in org.eclipse.jetty.server with parameters of type Promise.InvocableModifier and TypeMethodDescriptionstatic voidFormFields.onFields(Request request, Charset charset, int maxFields, int maxLength, Promise.Invocable<Fields> promise) Asynchronously reads and parsesFormFieldsfrom aRequest.static voidFormFields.onFields(Request request, Charset charset, Promise.Invocable<Fields> promise) Asynchronously read and parse FormFields from aRequest.static voidFormFields.onFields(Request request, Promise.Invocable<Fields> promise) Asynchronously read and parse FormFields from aRequest.static voidRequest.onParameters(Request request, Promise.Invocable<Fields> promise) Asynchronous version ofRequest.getParameters(Request). - 
Uses of Promise.Invocable in org.eclipse.jetty.util
Subinterfaces of Promise.Invocable in org.eclipse.jetty.utilClasses in org.eclipse.jetty.util that implement Promise.InvocableModifier and TypeClassDescriptionstatic classAbstract implementation ofPromise.Invocablewith the specifiedInvocable.InvocationType.static classAbstract implementation ofPromise.InvocablewithInvocable.InvocationTypeset toInvocable.InvocationType.NON_BLOCKING.Methods in org.eclipse.jetty.util that return Promise.InvocableModifier and TypeMethodDescriptionstatic <T> Promise.Invocable<T> Promise.Invocable.from(Runnable beforeComplete, Promise.Invocable<T> promise) Returns a promise that, when it is completed, runs the givenRunnableand then completes the given promise.static <T> Promise.Invocable<T> Promise.Invocable.from(Promise.Invocable<T> promise, Runnable afterComplete) Returns a promise that, when it is completed, completes the given promise and then runs the givenRunnable.static <T> Promise.Invocable<T> Promise.Invocable.from(Invocable.InvocationType invocationType, BiConsumer<T, Throwable> consumer) Factory method to create a promise from the given arguments.static <T> Promise.Invocable<T> Promise.Invocable.from(Invocable.InvocationType invocationType, Consumer<T> success, Consumer<Throwable> failure) Factory method to create a promise from the given arguments.static <T> Promise.Invocable<T> Promise.Invocable.noop()static <W> Promise.Invocable<W> Promise.Invocable.toPromise(CompletableFuture<W> completable) Returns a new promise that, when it is completed, completes the givenCompletableFuture.static <W,T> Promise.Invocable <W> Promise.Invocable.toPromise(Promise.Invocable<T> promise, Function<W, T> mapper) Returns a new promise that, when it is completed, completes the given promise.Methods in org.eclipse.jetty.util with parameters of type Promise.InvocableModifier and TypeMethodDescriptionstatic <T> Promise.Invocable<T> Promise.Invocable.from(Runnable beforeComplete, Promise.Invocable<T> promise) Returns a promise that, when it is completed, runs the givenRunnableand then completes the given promise.static <T> Promise.Invocable<T> Promise.Invocable.from(Promise.Invocable<T> promise, Runnable afterComplete) Returns a promise that, when it is completed, completes the given promise and then runs the givenRunnable.static <R> BiConsumer<R, Throwable> Promise.Invocable.toBiConsumer(Promise.Invocable<R> promise) Returns aBiConsumerthat, when it is invoked, completes the given promisestatic <T> CallbackPromise.Invocable.toCallback(Promise.Invocable<T> promise, T result) Returns a newCallbackthat, when it is completed, completes the given promise.static <W,T> Promise.Invocable <W> Promise.Invocable.toPromise(Promise.Invocable<T> promise, Function<W, T> mapper) Returns a new promise that, when it is completed, completes the given promise. 
MultiPartFormData.Parser.parse(Content.Source, Promise.Invocable)orMultiPartFormData.onParts(Content.Source, Attributes, String, MultiPartConfig, Promise.Invocable)instead.