public interface ListenableFutureCallback<T>
ListenableFuture
.Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable t)
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 t)
ListenableFuture
fails to complete.t
- the exception that triggered the failure