Uses of Interface
org.eclipse.jetty.util.Promise.Invocable
Packages that use Promise.Invocable
-
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.