Package com.spotify.futures
Class ApiFutureToCompletableFutureWrapper<V>
java.lang.Object
java.util.concurrent.CompletableFuture<V>
com.spotify.futures.ApiFutureToCompletableFutureWrapper<V>
- All Implemented Interfaces:
com.google.api.core.ApiFutureCallback<V>,CompletionStage<V>,Future<V>
class ApiFutureToCompletableFutureWrapper<V>
extends CompletableFuture<V>
implements com.google.api.core.ApiFutureCallback<V>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApiFutureToCompletableFutureWrapper(com.google.api.core.ApiFuture<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
-
ApiFutureToCompletableFutureWrapper
-
-
Method Details