- acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in class java8.util.concurrent.CompletableFuture
-
- acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>) - Method in class java8.util.concurrent.CompletableFuture
-
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- allOf(CompletableFuture<?>...) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed when all of
the given CompletableFutures complete.
- anyOf(CompletableFuture<?>...) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed when any of
the given CompletableFutures complete, with the same result.
- applyToEither(CompletionStage<? extends T>, Function<? super T, U>) - Method in class java8.util.concurrent.CompletableFuture
-
- applyToEither(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>) - Method in class java8.util.concurrent.CompletableFuture
-
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- cancel(boolean) - Method in class java8.util.concurrent.CompletableFuture
-
- CompletableFuture<T> - Class in java8.util.concurrent
-
A
Future
that may be explicitly completed (setting its
value and status), and may be used as a
CompletionStage
,
supporting dependent functions and actions that trigger upon its
completion.
- CompletableFuture() - Constructor for class java8.util.concurrent.CompletableFuture
-
Creates a new incomplete CompletableFuture.
- CompletableFuture.AsynchronousCompletionTask - Interface in java8.util.concurrent
-
A marker interface identifying asynchronous tasks produced by
async
methods.
- complete(T) - Method in class java8.util.concurrent.CompletableFuture
-
If not already completed, sets the value returned by
CompletableFuture.get()
and related methods to the given value.
- completeAsync(Supplier<? extends T>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the result of
the given Supplier function invoked from an asynchronous
task using the given executor.
- completeAsync(Supplier<? extends T>) - Method in class java8.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the result of the given
Supplier function invoked from an asynchronous task using the
default executor.
- completedFuture(U) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is already completed with
the given value.
- completedStage(U) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that is already completed with
the given value and supports only those methods in
interface
CompletionStage
.
- completeExceptionally(Throwable) - Method in class java8.util.concurrent.CompletableFuture
-
If not already completed, causes invocations of
CompletableFuture.get()
and related methods to throw the given exception.
- completeOnTimeout(T, long, TimeUnit) - Method in class java8.util.concurrent.CompletableFuture
-
Completes this CompletableFuture with the given value if not
otherwise completed before the given timeout.
- CompletionException - Exception in java8.util.concurrent
-
Exception thrown when an error or other exception is encountered
in the course of completing a result or task.
- CompletionException() - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with no detail message.
- CompletionException(String) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified detail
message.
- CompletionException(String, Throwable) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified detail
message and cause.
- CompletionException(Throwable) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified cause.
- CompletionStage<T> - Interface in java8.util.concurrent
-
A stage of a possibly asynchronous computation, that performs an
action or computes a value when another CompletionStage completes.
- CompletionStages - Class in java8.util.concurrent
-
A place for static default implementations of the new Java 12
default interface methods in the
CompletionStage
interface.
- copy() - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is completed normally with
the same value as this CompletableFuture when it completes
normally.
- exceptionally(Function<Throwable, ? extends T>) - Method in class java8.util.concurrent.CompletableFuture
-
- exceptionally(Function<Throwable, ? extends T>) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function.
- exceptionallyAsync(Function<Throwable, ? extends T>) - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using this stage's default
asynchronous execution facility.
- exceptionallyAsync(Function<Throwable, ? extends T>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function, using the supplied
Executor.
- exceptionallyAsync(CompletionStage<T>, Function<Throwable, ? extends T>) - Static method in class java8.util.concurrent.CompletionStages
-
Returns a new CompletionStage that, when thisStage
completes
exceptionally, is executed with thisStage
's exception as the
argument to the supplied function, using thisStage
's default
asynchronous execution facility.
- exceptionallyAsync(CompletionStage<T>, Function<Throwable, ? extends T>, Executor) - Static method in class java8.util.concurrent.CompletionStages
-
Returns a new CompletionStage that, when thisStage
completes
exceptionally, is executed with thisStage
's exception as the
argument to the supplied function, using the supplied
Executor.
- exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception.
- exceptionallyCompose(CompletionStage<T>, Function<Throwable, ? extends CompletionStage<T>>) - Static method in class java8.util.concurrent.CompletionStages
-
Returns a new CompletionStage that, when thisStage
completes
exceptionally, is composed using the results of the supplied
function applied to thisStage
's exception.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using this
stage's default asynchronous execution facility.
- exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletionStage that, when this stage completes
exceptionally, is composed using the results of the supplied
function applied to this stage's exception, using the
supplied Executor.
- exceptionallyComposeAsync(CompletionStage<T>, Function<Throwable, ? extends CompletionStage<T>>) - Static method in class java8.util.concurrent.CompletionStages
-
Returns a new CompletionStage that, when thisStage
completes
exceptionally, is composed using the results of the supplied
function applied to thisStage
's exception, using
thisStage
's default asynchronous execution facility.
- exceptionallyComposeAsync(CompletionStage<T>, Function<Throwable, ? extends CompletionStage<T>>, Executor) - Static method in class java8.util.concurrent.CompletionStages
-
Returns a new CompletionStage that, when thisStage
completes
exceptionally, is composed using the results of the supplied
function applied to thisStage
's exception, using the
supplied Executor.
- runAfterBoth(CompletionStage<?>, Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterBoth(CompletionStage<?>, Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action.
- runAfterBothAsync(CompletionStage<?>, Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterBothAsync(CompletionStage<?>, Runnable, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterBothAsync(CompletionStage<?>, Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- runAfterBothAsync(CompletionStage<?>, Runnable, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using the supplied executor.
- runAfterEither(CompletionStage<?>, Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterEither(CompletionStage<?>, Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action.
- runAfterEitherAsync(CompletionStage<?>, Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterEitherAsync(CompletionStage<?>, Runnable, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- runAfterEitherAsync(CompletionStage<?>, Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- runAfterEitherAsync(CompletionStage<?>, Runnable, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using the supplied executor.
- runAsync(Runnable) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is asynchronously completed
by a task running in the ForkJoinPool.commonPool()
after
it runs the given action.
- runAsync(Runnable, Executor) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor after it runs the given
action.
- thenAccept(Consumer<? super T>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAccept(Consumer<? super T>) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied action.
- thenAcceptAsync(Consumer<? super T>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAcceptAsync(Consumer<? super T>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAcceptAsync(Consumer<? super T>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenAcceptAsync(Consumer<? super T>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenAcceptBoth(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAcceptBoth(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenApply(Function<? super T, ? extends U>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenApply(Function<? super T, ? extends U>) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied function.
- thenApplyAsync(Function<? super T, ? extends U>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenApplyAsync(Function<? super T, ? extends U>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenApplyAsync(Function<? super T, ? extends U>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenApplyAsync(Function<? super T, ? extends U>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenCombine(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenCombine(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenCompose(Function<? super T, ? extends CompletionStage<U>>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenCompose(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function.
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>) - Method in class java8.util.concurrent.CompletableFuture
-
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java8.util.concurrent.CompletionStage
-
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.
- thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using the supplied Executor.
- thenRun(Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- thenRun(Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action.
- thenRunAsync(Runnable) - Method in class java8.util.concurrent.CompletableFuture
-
- thenRunAsync(Runnable, Executor) - Method in class java8.util.concurrent.CompletableFuture
-
- thenRunAsync(Runnable) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using this stage's default
asynchronous execution facility.
- thenRunAsync(Runnable, Executor) - Method in interface java8.util.concurrent.CompletionStage
-
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using the supplied Executor.
- toCompletableFuture() - Method in class java8.util.concurrent.CompletableFuture
-
Returns this CompletableFuture.
- toCompletableFuture() - Method in interface java8.util.concurrent.CompletionStage
-
Returns a
CompletableFuture
maintaining the same
completion properties as this stage.
- toString() - Method in class java8.util.concurrent.CompletableFuture
-
Returns a string identifying this CompletableFuture, as well as
its completion state.