public class IgnoreEventDeliveryExceptionHandler extends java.lang.Object implements EventDeliveryExceptionHandler
| Constructor and Description |
|---|
IgnoreEventDeliveryExceptionHandler() |
| 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
|
IgnoreEventDeliveryExceptionHandler |
withExceptions(java.lang.Class<? extends java.lang.Throwable>... throwables)
Specifies the exceptions that this exception handler can handle
|
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@SafeVarargs public final IgnoreEventDeliveryExceptionHandler withExceptions(java.lang.Class<? extends java.lang.Throwable>... throwables)
throwables - the exceptions