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>
AnApiFuture
whose 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()
boolean
set(V value)
boolean
setException(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:
set
in classAbstractApiFuture<V>
-
setException
public boolean setException(Throwable throwable)
- Overrides:
setException
in classAbstractApiFuture<V>
-
-