public class FailEventDeliveryExceptionHandler extends Object implements EventDeliveryExceptionHandler
| Constructor and Description |
|---|
FailEventDeliveryExceptionHandler() |
| 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
|
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 exceptionCopyright © 2019. All rights reserved.