Package com.spotify.futures
Class ListenableToCompletableFutureWrapper<V>
java.lang.Object
java.util.concurrent.CompletableFuture<V>
com.spotify.futures.ListenableToCompletableFutureWrapper<V>
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<V>,CompletionStage<V>,Future<V>
class ListenableToCompletableFutureWrapper<V>
extends CompletableFuture<V>
implements com.google.common.util.concurrent.FutureCallback<V>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListenableToCompletableFutureWrapper(com.google.common.util.concurrent.ListenableFuture<V> future, Executor executor) -
Method Summary
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Field Details
-
future
-
-
Constructor Details
-
ListenableToCompletableFutureWrapper
-
-
Method Details