T- The result object type returned by this future
public interface FutureCallback<T>
|Modifier and Type||Method and Description|
Called once a future has completed, but completed with either a failure or a cancellation.
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.