public final class CompletionStages extends Object
CompletionStage
.Modifier and Type | Method and Description |
---|---|
static <T> CompletionStage<T> |
completedExceptionally(Throwable throwable)
Return an immediately exceptional completed CompletionStage.
|
static <V> com.google.common.util.concurrent.ListenableFuture<V> |
toListenableFuture(CompletionStage<V> completionStage)
Converts a Java 8 CompletionStage to a Guava ListenableFuture.
|
public static <V> com.google.common.util.concurrent.ListenableFuture<V> toListenableFuture(CompletionStage<V> completionStage)
ListenableFutures.toCompletionStage(ListenableFuture)
for the exact inverse function of this,
and CompletableFutures.toListenableFuture(java.util.concurrent.CompletableFuture)
for a related function.public static <T> CompletionStage<T> completedExceptionally(Throwable throwable)
CompletableFutures.completedExceptionally(Throwable)
.Copyright © 2019 OpenDaylight. All rights reserved.