public interface ListenableFutureCallback<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onFailure(java.lang.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(java.lang.Throwable t)
ListenableFuture fails to complete.t - the exception that triggered the failure