| Package | Description |
|---|---|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture |
CompletableFuture.acceptEither(CompletionStage
|
CompletableFuture |
CompletableFuture.acceptEitherAsync(CompletionStage
|
CompletableFuture |
CompletableFuture.acceptEitherAsync(CompletionStage
|
static CompletableFuture |
CompletableFuture.allOf(CompletableFuture
Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete.
|
static CompletableFuture |
CompletableFuture.anyOf(CompletableFuture
Returns a new CompletableFuture that is completed when any of the given CompletableFutures complete, with the same result.
|
<U> CompletableFuture |
CompletableFuture.applyToEither(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.applyToEitherAsync(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.applyToEitherAsync(CompletionStage
|
static <U> CompletableFuture |
CompletableFuture.completedFuture(U value)
Returns a new CompletableFuture that is already completed with the given value.
|
CompletableFuture |
CompletableFuture.exceptionally(Function
Returns a new CompletableFuture that is completed when this CompletableFuture completes, with the result of the given function of the exception triggering this CompletableFuture's completion when it completes exceptionally; otherwise, if this CompletableFuture completes normally, then the returned CompletableFuture also completes normally with the same value.
|
<U> CompletableFuture |
CompletableFuture.handle(BiFunction
|
<U> CompletableFuture |
CompletableFuture.handleAsync(BiFunction
|
<U> CompletableFuture |
CompletableFuture.handleAsync(BiFunction
|
CompletableFuture |
CompletableFuture.runAfterBoth(CompletionStage
|
CompletableFuture |
CompletableFuture.runAfterBothAsync(CompletionStage
|
CompletableFuture |
CompletableFuture.runAfterBothAsync(CompletionStage
|
CompletableFuture |
CompletableFuture.runAfterEither(CompletionStage
|
CompletableFuture |
CompletableFuture.runAfterEitherAsync(CompletionStage
|
CompletableFuture |
CompletableFuture.runAfterEitherAsync(CompletionStage
|
static CompletableFuture |
CompletableFuture.runAsync(Runnable
Returns a new CompletableFuture that is asynchronously completed by a task running in the
ForkJoinPool after it runs the given action.
|
static CompletableFuture |
CompletableFuture.runAsync(Runnable
Returns a new CompletableFuture that is asynchronously completed by a task running in the given executor after it runs the given action.
|
static <U> CompletableFuture |
CompletableFuture.supplyAsync(Supplier
Returns a new CompletableFuture that is asynchronously completed by a task running in the
ForkJoinPool with the value obtained by calling the given Supplier.
|
static <U> CompletableFuture |
CompletableFuture.supplyAsync(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.
|
CompletableFuture |
CompletableFuture.thenAccept(Consumer
|
CompletableFuture |
CompletableFuture.thenAcceptAsync(Consumer
|
CompletableFuture |
CompletableFuture.thenAcceptAsync(Consumer
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBoth(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBothAsync(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.thenAcceptBothAsync(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.thenApply(Function
|
<U> CompletableFuture |
CompletableFuture.thenApplyAsync(Function
|
<U> CompletableFuture |
CompletableFuture.thenApplyAsync(Function
|
<U |
CompletableFuture.thenCombine(CompletionStage
|
<U |
CompletableFuture.thenCombineAsync(CompletionStage
|
<U |
CompletableFuture.thenCombineAsync(CompletionStage
|
<U> CompletableFuture |
CompletableFuture.thenCompose(Function
|
<U> CompletableFuture |
CompletableFuture.thenComposeAsync(Function
|
<U> CompletableFuture |
CompletableFuture.thenComposeAsync(Function
|
CompletableFuture |
CompletableFuture.thenRun(Runnable
|
CompletableFuture |
CompletableFuture.thenRunAsync(Runnable
|
CompletableFuture |
CompletableFuture.thenRunAsync(Runnable
|
CompletableFuture |
CompletionStage.toCompletableFuture()
Returns a
CompletableFuture maintaining the same completion properties as this stage.
|
CompletableFuture |
CompletableFuture.toCompletableFuture()
Returns this CompletableFuture
|
CompletableFuture |
CompletableFuture.whenComplete(BiConsumer
|
CompletableFuture |
CompletableFuture.whenCompleteAsync(BiConsumer
|
CompletableFuture |
CompletableFuture.whenCompleteAsync(BiConsumer
|
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture |
CompletableFuture.allOf(CompletableFuture
Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete.
|
static CompletableFuture |
CompletableFuture.anyOf(CompletableFuture
Returns a new CompletableFuture that is completed when any of the given CompletableFutures complete, with the same result.
|