| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final CompletionStage |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final CompletionStage | acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed with the corresponding result as argument to the supplied action. |
| public final CompletionStage | acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using this stage's default asynchronous execution facility, with the corresponding result as argument to the supplied action. |
| public final CompletionStage | acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using the supplied executor, with the corresponding result as argument to the supplied action. |
| public final <U> CompletionStage | applyToEither(CompletionStage<? extends T> other, Function<? super T, U> fn)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed with the corresponding result as argument to the supplied function. |
| public final <U> CompletionStage | applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using this stage's default asynchronous execution facility, with the corresponding result as argument to the supplied function. |
| public final <U> CompletionStage | applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using the supplied executor, with the corresponding result as argument to the supplied function. |
| public final CompletionStage | exceptionally(Function<Throwable, ? extends T> fn)
Implements java. Returns a new CompletionStage that, when this stage completes exceptionally, is executed with this stage's exception as the argument to the supplied function. |
| public final <U> CompletionStage | handle(BiFunction<? super T, Throwable, ? extends U> fn)
Implements java. Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed with this stage's result and exception as arguments to the supplied function. |
| public final <U> CompletionStage | handleAsync(BiFunction<? super T, Throwable, ? extends U> fn)
Implements java. Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using this stage's default asynchronous execution facility, with this stage's result and exception as arguments to the supplied function. |
| public final <U> CompletionStage | handleAsync(BiFunction<? super T, Throwable, ? extends U> fn, Executor executor)
Implements java. Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using the supplied executor, with this stage's result and exception as arguments to the supplied function. |
| pack-priv static final <T> SameExecutorCompletionStage | |
| public final CompletionStage | runAfterBoth(CompletionStage<?> other, Runnable action)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action. |
| public final CompletionStage | runAfterBothAsync(CompletionStage<?> other, Runnable action)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action using this stage's default asynchronous execution facility. |
| public final CompletionStage | runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action using the supplied executor. |
| public final CompletionStage | runAfterEither(CompletionStage<?> other, Runnable action)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action. |
| public final CompletionStage | runAfterEitherAsync(CompletionStage<?> other, Runnable action)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using this stage's default asynchronous execution facility. |
| public final CompletionStage | runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
Implements java. Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using the supplied executor. |
| public final CompletionStage | thenAccept(Consumer<? super T> action)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed with this stage's result as the argument to the supplied action. |
| public final CompletionStage | thenAcceptAsync(Consumer<? super T> action)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed using this stage's default asynchronous execution facility, with this stage's result as the argument to the supplied action. |
| public final CompletionStage | thenAcceptAsync(Consumer<? super T> action, Executor executor)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed using the supplied Executor, with this stage's result as the argument to the supplied action. |
| public final <U> CompletionStage | thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed with the two results as arguments to the supplied action. |
| public final <U> CompletionStage | thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using this stage's default asynchronous execution facility, with the two results as arguments to the supplied action. |
| public final <U> CompletionStage | thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied action. |
| public final <U> CompletionStage | thenApply(Function<? super T, ? extends U> fn)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed with this stage's result as the argument to the supplied function. |
| public final <U> CompletionStage | thenApplyAsync(Function<? super T, ? extends U> fn)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed using this stage's default asynchronous execution facility, with this stage's result as the argument to the supplied function. |
| public final <U> CompletionStage | thenApplyAsync(Function<? super T, ? extends U> fn, Executor executor)
Implements java. Returns a new CompletionStage that, when this stage completes normally, is executed using the supplied Executor, with this stage's result as the argument to the supplied function. |
| public final <U, V> CompletionStage | thenCombine(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed with the two results as arguments to the supplied function. |
| public final <U, V> CompletionStage | thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using this stage's default asynchronous execution facility, with the two results as arguments to the supplied function. |
| public final <U, V> CompletionStage | thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn, Executor executor)
Implements java. Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied function. |
| public final <U> CompletionStage | thenCompose(Function<? super T, ? extends CompletionStage<U>> fn)
Implements java. Returns a new CompletionStage that is completed with the same value as the CompletionStage returned by the given function. |
| public final <U> CompletionStage | thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn)
Implements java. Returns a new CompletionStage that is completed with the same value as the CompletionStage returned by the given function, executed using this stage's default asynchronous execution facility. |
| public final <U> CompletionStage | thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn, Executor executor)
Implements java. Returns a new CompletionStage that is completed with the same value as the CompletionStage returned by the given function, executed using the supplied Executor. |
| public final CompletionStage | thenRun(Runnable action)
Implements java. Returns a new CompletionStage that, when this stage completes normally, executes the given action. |
| public final CompletionStage | thenRunAsync(Runnable action)
Implements java. Returns a new CompletionStage that, when this stage completes normally, executes the given action using this stage's default asynchronous execution facility. |
| public final CompletionStage | thenRunAsync(Runnable action, Executor executor)
Implements java. Returns a new CompletionStage that, when this stage completes normally, executes the given action using the supplied Executor. |
| public final CompletableFuture | toCompletableFuture()
Implements java. Returns a |
| public final CompletionStage | whenComplete(BiConsumer<? super T, ? super Throwable> action)
Implements java. Returns a new CompletionStage with the same result or exception as this stage, that executes the given action when this stage completes. |
| public final CompletionStage | whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action)
Implements java. Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using this stage's default asynchronous execution facility when this stage completes. |
| public final CompletionStage | whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action, Executor executor)
Implements java. Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using the supplied Executor when this stage completes. |