public final class ExtendedSettableFuture<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
| Modifier and Type | Method and Description |
|---|---|
static <V> ExtendedSettableFuture<V> |
create() |
boolean |
set(V value) |
void |
setAsync(com.google.common.util.concurrent.ListenableFuture<? extends V> delegate)
Sets this current future with the result of the delegate.
|
boolean |
setException(Throwable throwable) |
public static <V> ExtendedSettableFuture<V> create()
public boolean set(@Nullable V value)
set in class com.google.common.util.concurrent.AbstractFuture<V>public boolean setException(Throwable throwable)
setException in class com.google.common.util.concurrent.AbstractFuture<V>public void setAsync(com.google.common.util.concurrent.ListenableFuture<? extends V> 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.
Copyright © 2010–2018 Airlift. All rights reserved.