Class SettableApiFuture<V> (2.33.0)

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

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
Overrides

setException(Throwable throwable)

public boolean setException(Throwable throwable)
Parameter
Name Description
throwable Throwable
Returns
Type Description
boolean
Overrides