Interface ApiFutureCallback<V> (2.31.0)

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

Name Description
V

Methods

onFailure(Throwable t)

public abstract void onFailure(Throwable t)
Parameter
Name Description
t Throwable

onSuccess(V result)

public abstract void onSuccess(V result)
Parameter
Name Description
result V