Package com.spotify.futures
Class CompletableToApiFutureWrapper<V>
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<V>
com.spotify.futures.CompletableToApiFutureWrapper<V>
- All Implemented Interfaces:
com.google.api.core.ApiFuture<V>,com.google.common.util.concurrent.ListenableFuture<V>,Future<V>,BiConsumer<V,Throwable>
class CompletableToApiFutureWrapper<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
implements com.google.api.core.ApiFuture<V>, BiConsumer<V,Throwable>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, afterDone, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterruptedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.api.core.ApiFuture
addListenerMethods inherited from interface java.util.function.BiConsumer
andThenMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
Field Details
-
future
-
-
Constructor Details
-
CompletableToApiFutureWrapper
CompletableToApiFutureWrapper(CompletionStage<V> future)
-
-
Method Details