public class IgnoreEventDeliveryExceptionHandler extends Object implements EventDeliveryExceptionHandler
| Constructor and Description |
|---|
IgnoreEventDeliveryExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(EventDeliveryExceptionHandlerState state,
Throwable t,
Runnable retry,
Consumer<Throwable> fail,
Runnable ignore)
handle an exception by either (asynchronously) retrying or failing
|
boolean |
handles(Throwable t)
Returns true if this handles the throwable
|
EventDeliveryExceptionHandlerState |
makeState(Throwable t)
create the state used for handling an exception
|
IgnoreEventDeliveryExceptionHandler |
withExceptions(Class<? extends Throwable>... throwables)
Specifies the exceptions that this exception handler can handle
|
public boolean handles(Throwable t)
EventDeliveryExceptionHandlerhandles in interface EventDeliveryExceptionHandlert - the throwablepublic EventDeliveryExceptionHandlerState makeState(Throwable t)
EventDeliveryExceptionHandlermakeState in interface EventDeliveryExceptionHandlert - the throwablepublic void handle(EventDeliveryExceptionHandlerState state, Throwable t, Runnable retry, Consumer<Throwable> fail, 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(Class<? extends Throwable>... throwables)
throwables - the exceptionsCopyright © 2019. All rights reserved.