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()
Returns | |
---|---|
Type | Description |
SettableApiFuture<V> |
Methods
set(V value)
public boolean set(V value)
Parameter | |
---|---|
Name | Description |
value | V |
Returns | |
---|---|
Type | Description |
boolean |
setException(Throwable throwable)
public boolean setException(Throwable throwable)
Parameter | |
---|---|
Name | Description |
throwable | Throwable |
Returns | |
---|---|
Type | Description |
boolean |