public final class SettableApiFuture<V> extends AbstractApiFuture<V>
An ApiFuture whose result can be set. Similar to Guava's SettableFuture
, but
redeclared so that Guava could be shaded.
Type Parameter
Name | Description |
V |
Static Methods
<V>create()
public static SettableApiFuture<V> <V>create()
Type | Description |
SettableApiFuture<V> |
Methods
set(V value)
public boolean set(V value)
Name | Description |
value | V |
Type | Description |
boolean |
setException(Throwable throwable)
public boolean setException(Throwable throwable)
Name | Description |
throwable | Throwable |
Type | Description |
boolean |