Skip navigation links
A C D E F G H I J M N O R S T W 

A

acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
 
acceptEither(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
acceptEitherAsync(CompletionStage<? extends T>, Consumer<? super T>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete.
anyOf(CompletableFuture<?>...) - Static method in class java9.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 java9.util.concurrent.CompletableFuture
 
applyToEither(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
applyToEitherAsync(CompletionStage<? extends T>, Function<? super T, U>) - Method in interface java9.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 java9.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.

C

cancel(boolean) - Method in class java9.util.concurrent.CompletableFuture
If not already completed, completes this CompletableFuture with a CancellationException.
CompletableFuture<T> - Class in java9.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 java9.util.concurrent.CompletableFuture
Creates a new incomplete CompletableFuture.
CompletableFuture.AsynchronousCompletionTask - Interface in java9.util.concurrent
A marker interface identifying asynchronous tasks produced by async methods.
complete(T) - Method in class java9.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 java9.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 java9.util.concurrent.CompletableFuture
Completes this CompletableFuture with the result of the given Supplier function invoked from an asynchronous task using the default executor.
completed(Collection<? extends CompletableFuture<T>>) - Static method in class java9.util.concurrent.CompletableFuture
Returns a stream that is lazily populated with the given CompletableFutures when they complete.
completed(CompletableFuture<T>...) - Static method in class java9.util.concurrent.CompletableFuture
Returns a stream that is lazily populated with the given CompletableFutures when they complete.
completedFuture(U) - Static method in class java9.util.concurrent.CompletableFuture
Returns a new CompletableFuture that is already completed with the given value.
completedStage(U) - Static method in class java9.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 java9.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 java9.util.concurrent.CompletableFuture
Completes this CompletableFuture with the given value if not otherwise completed before the given timeout.
CompletionException - Exception in java9.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 java9.util.concurrent.CompletionException
Constructs a CompletionException with no detail message.
CompletionException(String) - Constructor for exception java9.util.concurrent.CompletionException
Constructs a CompletionException with the specified detail message.
CompletionException(String, Throwable) - Constructor for exception java9.util.concurrent.CompletionException
Constructs a CompletionException with the specified detail message and cause.
CompletionException(Throwable) - Constructor for exception java9.util.concurrent.CompletionException
Constructs a CompletionException with the specified cause.
CompletionStage<T> - Interface in java9.util.concurrent
A stage of a possibly asynchronous computation, that performs an action or computes a value when another CompletionStage completes.
copy() - Method in class java9.util.concurrent.CompletableFuture
Returns a new CompletableFuture that is completed normally with the same value as this CompletableFuture when it completes normally.

D

defaultExecutor() - Method in class java9.util.concurrent.CompletableFuture
Returns the default Executor used for async methods that do not specify an Executor.
delayedExecutor(long, TimeUnit, Executor) - Static method in class java9.util.concurrent.CompletableFuture
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive).
delayedExecutor(long, TimeUnit) - Static method in class java9.util.concurrent.CompletableFuture
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive).

E

exceptionally(Function<Throwable, ? extends T>) - Method in class java9.util.concurrent.CompletableFuture
 
exceptionally(Function<Throwable, ? extends T>) - Method in interface java9.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 java9.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 java9.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(Function<Throwable, ? extends T>) - Method in interface java9.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, using this stage's default asynchronous execution facility.
exceptionallyAsync(Function<Throwable, ? extends T>, Executor) - Method in interface java9.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, using the supplied Executor.
exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java9.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(Function<Throwable, ? extends CompletionStage<T>>) - Method in interface java9.util.concurrent.CompletionStage
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.
exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>>) - Method in class java9.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 java9.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(Function<Throwable, ? extends CompletionStage<T>>) - Method in interface java9.util.concurrent.CompletionStage
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 interface java9.util.concurrent.CompletionStage
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.

F

failedFuture(Throwable) - Static method in class java9.util.concurrent.CompletableFuture
Returns a new CompletableFuture that is already completed exceptionally with the given exception.
failedStage(Throwable) - Static method in class java9.util.concurrent.CompletableFuture
Returns a new CompletionStage that is already completed exceptionally with the given exception and supports only those methods in interface CompletionStage.

G

get() - Method in class java9.util.concurrent.CompletableFuture
Waits if necessary for this future to complete, and then returns its result.
get(long, TimeUnit) - Method in class java9.util.concurrent.CompletableFuture
Waits if necessary for at most the given time for this future to complete, and then returns its result, if available.
getNow(T) - Method in class java9.util.concurrent.CompletableFuture
Returns the result value (or throws any encountered exception) if completed, else returns the given valueIfAbsent.
getNumberOfDependents() - Method in class java9.util.concurrent.CompletableFuture
Returns the estimated number of CompletableFutures whose completions are awaiting completion of this CompletableFuture.

H

handle(BiFunction<? super T, Throwable, ? extends U>) - Method in class java9.util.concurrent.CompletableFuture
 
handle(BiFunction<? super T, Throwable, ? extends U>) - Method in interface java9.util.concurrent.CompletionStage
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.
handleAsync(BiFunction<? super T, Throwable, ? extends U>) - Method in class java9.util.concurrent.CompletableFuture
 
handleAsync(BiFunction<? super T, Throwable, ? extends U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
handleAsync(BiFunction<? super T, Throwable, ? extends U>) - Method in interface java9.util.concurrent.CompletionStage
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.
handleAsync(BiFunction<? super T, Throwable, ? extends U>, Executor) - Method in interface java9.util.concurrent.CompletionStage
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.

I

isCancelled() - Method in class java9.util.concurrent.CompletableFuture
Returns true if this CompletableFuture was cancelled before it completed normally.
isCompletedExceptionally() - Method in class java9.util.concurrent.CompletableFuture
Returns true if this CompletableFuture completed exceptionally, in any way.
isDone() - Method in class java9.util.concurrent.CompletableFuture
Returns true if completed in any fashion: normally, exceptionally, or via cancellation.

J

java9.util.concurrent - package java9.util.concurrent
Covers a backport of the upgraded (JEP 266) Java 9 CompletableFuture API for Java 6 to 8 and Android developers.
join() - Method in class java9.util.concurrent.CompletableFuture
Returns the result value when complete, or throws an (unchecked) exception if completed exceptionally.

M

minimalCompletionStage() - Method in class java9.util.concurrent.CompletableFuture
Returns a new CompletionStage that is completed normally with the same value as this CompletableFuture when it completes normally, and cannot be independently completed or otherwise used in ways not defined by the methods of interface CompletionStage.

N

newIncompleteFuture() - Method in class java9.util.concurrent.CompletableFuture
Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method.

O

obtrudeException(Throwable) - Method in class java9.util.concurrent.CompletableFuture
Forcibly causes subsequent invocations of method CompletableFuture.get() and related methods to throw the given exception, whether or not already completed.
obtrudeValue(T) - Method in class java9.util.concurrent.CompletableFuture
Forcibly sets or resets the value subsequently returned by method CompletableFuture.get() and related methods, whether or not already completed.
orTimeout(long, TimeUnit) - Method in class java9.util.concurrent.CompletableFuture
Exceptionally completes this CompletableFuture with a TimeoutException if not otherwise completed before the given timeout.

R

runAfterBoth(CompletionStage<?>, Runnable) - Method in class java9.util.concurrent.CompletableFuture
 
runAfterBoth(CompletionStage<?>, Runnable) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
runAfterBothAsync(CompletionStage<?>, Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
runAfterBothAsync(CompletionStage<?>, Runnable) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
runAfterEither(CompletionStage<?>, Runnable) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
runAfterEitherAsync(CompletionStage<?>, Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
runAfterEitherAsync(CompletionStage<?>, Runnable) - Method in interface java9.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 java9.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 java9.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 java9.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.

S

supplyAsync(Supplier<U>) - Static method in class java9.util.concurrent.CompletableFuture
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.
supplyAsync(Supplier<U>, Executor) - Static method in class java9.util.concurrent.CompletableFuture
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.

T

thenAccept(Consumer<? super T>) - Method in class java9.util.concurrent.CompletableFuture
 
thenAccept(Consumer<? super T>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
thenAcceptAsync(Consumer<? super T>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenAcceptAsync(Consumer<? super T>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
thenAcceptBoth(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenAcceptBothAsync(CompletionStage<? extends U>, BiConsumer<? super T, ? super U>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
thenApply(Function<? super T, ? extends U>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
thenApplyAsync(Function<? super T, ? extends U>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenApplyAsync(Function<? super T, ? extends U>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
thenCombine(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenCombineAsync(CompletionStage<? extends U>, BiFunction<? super T, ? super U, ? extends V>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
thenCompose(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java9.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 java9.util.concurrent.CompletableFuture
 
thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenComposeAsync(Function<? super T, ? extends CompletionStage<U>>) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
 
thenRun(Runnable) - Method in interface java9.util.concurrent.CompletionStage
Returns a new CompletionStage that, when this stage completes normally, executes the given action.
thenRunAsync(Runnable) - Method in class java9.util.concurrent.CompletableFuture
 
thenRunAsync(Runnable, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
thenRunAsync(Runnable) - Method in interface java9.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 java9.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 java9.util.concurrent.CompletableFuture
Returns this CompletableFuture.
toCompletableFuture() - Method in interface java9.util.concurrent.CompletionStage
Returns a CompletableFuture maintaining the same completion properties as this stage.
toString() - Method in class java9.util.concurrent.CompletableFuture
Returns a string identifying this CompletableFuture, as well as its completion state.

W

whenComplete(BiConsumer<? super T, ? super Throwable>) - Method in class java9.util.concurrent.CompletableFuture
 
whenComplete(BiConsumer<? super T, ? super Throwable>) - Method in interface java9.util.concurrent.CompletionStage
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action when this stage completes.
whenCompleteAsync(BiConsumer<? super T, ? super Throwable>) - Method in class java9.util.concurrent.CompletableFuture
 
whenCompleteAsync(BiConsumer<? super T, ? super Throwable>, Executor) - Method in class java9.util.concurrent.CompletableFuture
 
whenCompleteAsync(BiConsumer<? super T, ? super Throwable>) - Method in interface java9.util.concurrent.CompletionStage
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.
whenCompleteAsync(BiConsumer<? super T, ? super Throwable>, Executor) - Method in interface java9.util.concurrent.CompletionStage
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.
A C D E F G H I J M N O R S T W 
Skip navigation links

Copyright © 2021. All rights reserved.