|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Packages that use CompletableFuture |
|
Provides classes that are fundamental to the design of the Java
programming language.
|
|
Utility classes commonly useful in concurrent programming.
|
Uses of CompletableFuture in java.lang |
Methods in java.lang that return CompletableFuture |
|
Process.onExit()
Returns a CompletableFuture<Process> for the termination of the Process.
|
|
ProcessHandle.onExit()
Returns a CompletableFuture<ProcessHandle> for the termination
of the process.
|
Uses of CompletableFuture in java.util.concurrent |
Methods in java.util.concurrent that return CompletableFuture |
|
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.
|
|
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.
|
|
CompletableFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
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.
|
|
static CompletableFuture<Void> |
CompletableFuture.allOf(CompletableFuture<?>... cfs)
Returns a new CompletableFuture that is completed when all of
the given CompletableFutures complete.
|
static CompletableFuture<Object> |
CompletableFuture.anyOf(CompletableFuture<?>... cfs)
Returns a new CompletableFuture that is completed when any of
the given CompletableFutures complete, with the same result.
|
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.
|
|
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.
|
|
CompletableFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor)
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.
|
|
Completes this CompletableFuture with the result of the given
Supplier function invoked from an asynchronous task using the
default executor.
|
|
Completes this CompletableFuture with the result of
the given Supplier function invoked from an asynchronous
task using the given executor.
|
|
CompletableFuture.completedFuture(U value)
Returns a new CompletableFuture that is already completed with
the given value.
|
|
Completes this CompletableFuture with the given value if not
otherwise completed before the given timeout.
|
|
CompletableFuture.copy()
Returns a new CompletableFuture that is completed normally with
the same value as this CompletableFuture when it completes
normally.
|
|
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
CompletableFuture.exceptionallyComposeAsync(Function<Throwable,? extends CompletionStage<T>> fn, Executor executor)
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.
|
|
CompletableFuture.failedFuture(Throwable ex)
Returns a new CompletableFuture that is already completed
exceptionally with the given exception.
|
|
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.
|
|
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.
|
|
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.
|
|
CompletableFuture.newIncompleteFuture()
Returns a new incomplete CompletableFuture of the type to be
returned by a CompletionStage method.
|
|
Exceptionally completes this CompletableFuture with
a TimeoutException if not otherwise completed
before the given timeout.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action.
|
|
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.
|
|
Returns a new CompletionStage that, when this and the other
given stage both complete normally, executes the given action
using the supplied executor.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action.
|
|
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.
|
|
Returns a new CompletionStage that, when either this or the
other given stage complete normally, executes the given action
using the supplied executor.
|
|
static CompletableFuture<Void> |
Returns a new CompletableFuture that is asynchronously completed
by a task running in the ForkJoinPool.commonPool() after
it runs the given action.
|
static CompletableFuture<Void> |
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor after it runs the given
action.
|
Returns a new CompletableFuture that is asynchronously completed
by a task running in the ForkJoinPool.commonPool() with
the value obtained by calling the given Supplier.
|
|
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor with the value obtained
by calling the given Supplier.
|
|
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied action.
|
|
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.
|
|
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.
|
|
CompletableFuture.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
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.
|
|
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action)
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.
|
|
CompletableFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
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.
|
|
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied function.
|
|
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.
|
|
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.
|
|
CompletableFuture.thenCombine(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn)
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.
|
|
CompletableFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn)
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.
|
|
CompletableFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor)
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.
|
|
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function.
|
|
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.
|
|
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor)
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using the supplied Executor.
|
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action.
|
|
CompletableFuture.thenRunAsync(Runnable action)
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using this stage's default
asynchronous execution facility.
|
|
Returns a new CompletionStage that, when this stage completes
normally, executes the given action using the supplied Executor.
|
|
CompletableFuture.toCompletableFuture()
Returns this CompletableFuture.
|
|
Returns a new CompletionStage with the same result or exception as
this stage, that executes the given action when this stage completes.
|
|
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.
|
|
CompletableFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
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.
|
|
CompletionStage.toCompletableFuture()
Returns a CompletableFuture maintaining the same
completion properties as this stage.
|
|
Processes all published items using the given Consumer function.
|
Methods in java.util.concurrent with parameters of type CompletableFuture |
|
static CompletableFuture<Void> |
CompletableFuture.allOf(CompletableFuture<?>... cfs)
Returns a new CompletableFuture that is completed when all of
the given CompletableFutures complete.
|
static CompletableFuture<Object> |
CompletableFuture.anyOf(CompletableFuture<?>... cfs)
Returns a new CompletableFuture that is completed when any of
the given CompletableFutures complete, with the same result.
|
|
FlexDoc/Javadoc 2.0 Demo Java Doc |