T- Type of result returned
@Deprecated public abstract class AbstractFutureCallbackResultHandler<T> extends java.lang.Object implements FutureCallback<T>
FutureCallbackwhere failures are ignored. This can allow you to easily do an action only when a result is produced condition (with the result provided by
It is important to know that if a failure did occur, and your using this, unless your using
some other means to detect it (like
ListenableFuture.listener(Runnable), you may never
know the computation is complete.
For a simpler construction using a lambda look at
|Constructor and Description|
|Modifier and Type||Method and Description|
Called once a future has completed, but completed with either a failure or a cancellation.
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void handleFailure(java.lang.Throwable t)
If the future was canceled then a CancellationException will be provided.