Package com.google.api.core
Class SettableApiFuture<V>
- java.lang.Object
-
- com.google.api.core.AbstractApiFuture<V>
-
- com.google.api.core.SettableApiFuture<V>
-
public final class SettableApiFuture<V> extends AbstractApiFuture<V>
AnApiFuturewhose result can be set. Similar to Guava'sSettableFuture, but redeclared so that Guava could be shaded.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> SettableApiFuture<V>create()booleanset(V value)booleansetException(Throwable throwable)-
Methods inherited from class com.google.api.core.AbstractApiFuture
addListener, cancel, get, get, interruptTask, isCancelled, isDone
-
-
-
-
Method Detail
-
create
public static <V> SettableApiFuture<V> create()
-
set
public boolean set(V value)
- Overrides:
setin classAbstractApiFuture<V>
-
setException
public boolean setException(Throwable throwable)
- Overrides:
setExceptionin classAbstractApiFuture<V>
-
-