Package io.airlift.concurrent
Class ExtendedSettableFuture<V>
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<V>
io.airlift.concurrent.ExtendedSettableFuture<V>
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>,Future<V>
public final class ExtendedSettableFuture<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> ExtendedSettableFuture<V> create()booleanvoidSets this current future with the result of the delegate.booleansetException(Throwable throwable) Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, 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.concurrent.Future
exceptionNow, resultNow, state
-
Method Details
-
create
-
set
- Overrides:
setin classcom.google.common.util.concurrent.AbstractFuture<V>
-
setException
- Overrides:
setExceptionin classcom.google.common.util.concurrent.AbstractFuture<V>
-
setAsync
Sets this current future with the result of the delegate.Values and exceptions are both propagated to this Future. If this Future is cancelled, than the delegate will also be cancelled with the same interrupt flag.
-