Class SettableApiFuture<V> (2.29.1)

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.

Inheritance

java.lang.Object > AbstractApiFuture > SettableApiFuture<V>

Type Parameter

NameDescription
V

Static Methods

<V>create()

public static SettableApiFuture<V> <V>create()
Returns
TypeDescription
SettableApiFuture<V>

Methods

set(V value)

public boolean set(V value)
Parameter
NameDescription
valueV
Returns
TypeDescription
boolean
Overrides

setException(Throwable throwable)

public boolean setException(Throwable throwable)
Parameter
NameDescription
throwableThrowable
Returns
TypeDescription
boolean
Overrides