Package com.spotify.futures
Class CompletableToListenableFutureWrapper<V>
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<V>
com.spotify.futures.CompletableToListenableFutureWrapper<V>
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>,Future<V>,BiConsumer<V,Throwable>
class CompletableToListenableFutureWrapper<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
implements com.google.common.util.concurrent.ListenableFuture<V>, BiConsumer<V,Throwable>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancancel(boolean mayInterruptIfRunning) unwrap()(package private) static ThrowableunwrapThrowable(Throwable throwable) 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 java.util.function.BiConsumer
andThenMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDoneMethods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListener
-
Field Details
-
future
-
-
Constructor Details
-
CompletableToListenableFutureWrapper
CompletableToListenableFutureWrapper(CompletionStage<V> future)
-
-
Method Details