Package org.bitcoinj.utils
Interface ListenableCompletionStage<V>
- All Superinterfaces:
CompletionStage<V>,Future<V>,com.google.common.util.concurrent.ListenableFuture<V>
- All Known Implementing Classes:
ListenableCompletableFuture
public interface ListenableCompletionStage<V>
extends CompletionStage<V>, com.google.common.util.concurrent.ListenableFuture<V>
A
CompletionStage with a ListenableFuture-compatible interface to smooth migration
from Guava ListenableFuture to CompletableFuture/CompletionStage.
Note that this is much easier to implement than trying to extend AbstractFuture
to implement CompletionStage.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddListener(Runnable listener, Executor executor) Deprecated.Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Method Details
-
addListener
Deprecated.- Specified by:
addListenerin interfacecom.google.common.util.concurrent.ListenableFuture<V>
-
CompletableFutureandCompletableFuture.thenRunAsync(Runnable, Executor)