public final class SettableApiFuture<V> extends AbstractApiFuture<V>
ApiFuture whose result can be set. Similar to Guava's SettableFuture, but
redeclared so that Guava could be shaded.| Modifier and Type | Method and Description |
|---|---|
static <V> SettableApiFuture<V> |
create() |
boolean |
set(V value) |
boolean |
setException(Throwable throwable) |
addListener, cancel, get, get, interruptTask, isCancelled, isDonepublic static <V> SettableApiFuture<V> create()
public boolean set(V value)
set in class AbstractApiFuture<V>public boolean setException(Throwable throwable)
setException in class AbstractApiFuture<V>