Consumer
provided to
ListenableFuture.failureCallback(java.util.function.Consumer)
@Deprecated public abstract class AbstractFutureCallbackFailureHandler extends java.lang.Object implements FutureCallback<java.lang.Object>
FutureCallback
where the result is ignored. This can
allow you to easily do an action only on a failure condition (with the failure provided by
FutureCallback.handleFailure(Throwable)
).
For simpler construction using a lambda look at FutureCallbackFailureHandler
.
Constructor and Description |
---|
AbstractFutureCallbackFailureHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
handleResult(java.lang.Object result)
Deprecated.
Called once a result was produced successfully.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleFailure
public AbstractFutureCallbackFailureHandler()
public void handleResult(java.lang.Object result)
FutureCallback
handleResult
in interface FutureCallback<java.lang.Object>
result
- Result that was provided from the future.