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>
-
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, wasInterrupted
-
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.
-