Interface ApiFutureCallback<V>

public interface ApiFutureCallback<V>

A callback for accepting the results of an ApiFuture.

It is similar to Guava's FutureCallback, redeclared so that Guava can be shaded.

Type Parameter

NameDescription
V

Methods

onFailure(Throwable t)

public abstract void onFailure(Throwable t)
Parameter
NameDescription
tThrowable

onSuccess(V result)

public abstract void onSuccess(V result)
Parameter
NameDescription
resultV