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.
WARNING: This interface should be considered Deprecated for Removal, It will be removed in Release 0.18. See ListenableCompletableFuture for details.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
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, whenCompleteAsyncMethods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Method Details
-
addListener
Deprecated.- Specified by:
addListenerin interfacecom.google.common.util.concurrent.ListenableFuture<V>
-
CompletableFutureandCompletableFuture.thenRunAsync(Runnable, Executor)