public class FailEventDeliveryExceptionHandler extends java.lang.Object implements EventDeliveryExceptionHandler
| Constructor and Description |
|---|
FailEventDeliveryExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(EventDeliveryExceptionHandlerState state,
java.lang.Throwable t,
java.lang.Runnable retry,
java.util.function.Consumer<java.lang.Throwable> fail,
java.lang.Runnable ignore)
handle an exception by either (asynchronously) retrying or failing
|
boolean |
handles(java.lang.Throwable t)
Returns true if this handles the throwable
|
EventDeliveryExceptionHandlerState |
makeState(java.lang.Throwable t)
create the state used for handling an exception
|
public boolean handles(java.lang.Throwable t)
EventDeliveryExceptionHandlerhandles in interface EventDeliveryExceptionHandlert - the throwablepublic EventDeliveryExceptionHandlerState makeState(java.lang.Throwable t)
EventDeliveryExceptionHandlermakeState in interface EventDeliveryExceptionHandlert - the throwablepublic void handle(EventDeliveryExceptionHandlerState state, java.lang.Throwable t, java.lang.Runnable retry, java.util.function.Consumer<java.lang.Throwable> fail, java.lang.Runnable ignore)
EventDeliveryExceptionHandlerhandle in interface EventDeliveryExceptionHandlerstate - the statet - the throwableretry - invoked asynchronously to retryfail - invoked asynchronously to failignore - invoked to ignore the exception