Package org.bitcoinj.utils
Interface ListenableCompletionStage<V>
-
- All Superinterfaces:
java.util.concurrent.CompletionStage<V>,java.util.concurrent.Future<V>,com.google.common.util.concurrent.ListenableFuture<V>
- All Known Implementing Classes:
ListenableCompletableFuture
public interface ListenableCompletionStage<V> extends java.util.concurrent.CompletionStage<V>, com.google.common.util.concurrent.ListenableFuture<V>ACompletionStagewith aListenableFuture-compatible interface to smooth migration from GuavaListenableFuturetoCompletableFuture/CompletionStage.WARNING: This interface should be considered Deprecated for Removal, It will be removed in Release 0.18. See
ListenableCompletableFuturefor details.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidaddListener(java.lang.Runnable listener, java.util.concurrent.Executor executor)Deprecated.UseCompletableFutureandCompletableFuture.thenRunAsync(Runnable, Executor)-
Methods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, 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 Detail
-
addListener
@Deprecated default void addListener(java.lang.Runnable listener, java.util.concurrent.Executor executor)Deprecated.UseCompletableFutureandCompletableFuture.thenRunAsync(Runnable, Executor)- Specified by:
addListenerin interfacecom.google.common.util.concurrent.ListenableFuture<V>
-
-