public interface ListenableFutureCallback<T>
ListenableFuture.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable ex)
Called when the
ListenableFuture fails to complete. |
void |
onSuccess(T result)
Called when the
ListenableFuture successfully completes. |
void onSuccess(T result)
ListenableFuture successfully completes.result - the resultvoid onFailure(Throwable ex)
ListenableFuture fails to complete.ex - the exception that triggered the failure