Class ListenableCompletableFuture<V>

java.lang.Object
java.util.concurrent.CompletableFuture<V>
org.bitcoinj.utils.ListenableCompletableFuture<V>
All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>, CompletionStage<V>, Future<V>, ListenableCompletionStage<V>

public class ListenableCompletableFuture<V> extends CompletableFuture<V> implements ListenableCompletionStage<V>
A CompletableFuture that is also a ListenableFuture for migration from Guava ListenableFuture to CompletableFuture. This allows clients of bitcoinj to change the type of variables receiving Futures from bitcoinj methods. You must switch from Guava's ListenableFuture (and related types) to Java 8's CompletableFuture. Release 0.18 of bitcoinj will remove this class, and the type of returned futures from bitcoinj, will be changed to CompletableFuture.

WARNING: This class should be considered Deprecated for Removal, as it will be removed in Release 0.18. See above for details.

  • Constructor Details

    • ListenableCompletableFuture

      public ListenableCompletableFuture()
  • Method Details