public class CompletionStages extends Object
CompletionStage and CompletableFuture.| Constructor and Description |
|---|
CompletionStages() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletionStage<T> |
completedStage(T value) |
static <T> CompletableFuture<T> |
failedFuture(Throwable exception) |
static <T> CompletionStage<T> |
failedStage(Throwable exception) |
static <T> void |
propagateCompletion(CompletionStage<T> from,
CompletableFuture<T> to) |
public static <T> CompletionStage<T> completedStage(T value)
public static <T> CompletionStage<T> failedStage(Throwable exception)
public static <T> CompletableFuture<T> failedFuture(Throwable exception)
public static <T> void propagateCompletion(CompletionStage<T> from, CompletableFuture<T> to)
Copyright © 2018–2020. All rights reserved.