public class FutureCallbackExceptionHandlerAdapter extends AbstractFutureCallbackFailureHandler
FutureCallback into a
ExceptionHandler. By default when constructed results will be ignored, if you wish to
handle results, as well as have failures mapped you can override
FutureCallback.handleResult(Object).| Constructor and Description |
|---|
FutureCallbackExceptionHandlerAdapter(ExceptionHandler handler)
Construct a new
FutureCallbackExceptionHandlerAdapter with the provided handler
implementation. |
| 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.
|
handleResultpublic FutureCallbackExceptionHandlerAdapter(ExceptionHandler handler)
FutureCallbackExceptionHandlerAdapter with the provided handler
implementation.handler - Handler to delegate failures topublic void handleFailure(java.lang.Throwable t)
FutureCallbackIf the future was canceled then a CancellationException will be provided.
t - Throwable representing the future failure.