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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> ExtendedSettableFuture<V>create()booleanset(V value)voidsetAsync(com.google.common.util.concurrent.ListenableFuture<? extends V> delegate)Sets this current future with the result of the delegate.booleansetException(Throwable throwable)
-
-
-
Method Detail
-
create
public static <V> ExtendedSettableFuture<V> create()
-
set
public boolean set(@Nullable V value)- Overrides:
setin classcom.google.common.util.concurrent.AbstractFuture<V>
-
setException
public boolean setException(Throwable throwable)
- Overrides:
setExceptionin classcom.google.common.util.concurrent.AbstractFuture<V>
-
setAsync
public void setAsync(com.google.common.util.concurrent.ListenableFuture<? extends V> delegate)
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.
-
-