T - The result object type returned by this futurepublic interface FutureCallback<T>
| Modifier and Type | Method and Description |
|---|---|
void |
handleFailure(java.lang.Throwable t)
Called once a future has completed, but completed with either a failure or a cancellation.
|
void |
handleResult(T result)
Called once a result was produced successfully.
|
void handleResult(T result)
result - Result that was provided from the future.void handleFailure(java.lang.Throwable t)
If the future was canceled then a CancellationException will be provided.
t - Throwable representing the future failure.