|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler
Defines the behavior of a component when an error occurs during Event Processing in a Saga.
Method Summary | |
---|---|
RetryPolicy |
onErrorInvoking(Saga saga,
EventMessage publishedEvent,
int invocationCount,
Exception exception)
Invoked when an error occurs when a Saga instance is invoked. |
RetryPolicy |
onErrorPreparing(Class<? extends Saga> sagaType,
EventMessage<?> publishedEvent,
int invocationCount,
Exception exception)
Invoked when an error occurs preparing Sagas. |
Method Detail |
---|
RetryPolicy onErrorPreparing(Class<? extends Saga> sagaType, EventMessage<?> publishedEvent, int invocationCount, Exception exception)
sagaType
- The type of Saga to preparepublishedEvent
- The event being publishedinvocationCount
- The number of attempts to prepare (is always at least 1)exception
- The exception that occurred in this attempt
RetryPolicy onErrorInvoking(Saga saga, EventMessage publishedEvent, int invocationCount, Exception exception)
saga
- The Saga instance being invokedpublishedEvent
- The event handled by the SagainvocationCount
- The number of times this event has been offered to the Saga, including the last, failed,
attemptexception
- The exception that occurred in the last attempt to invoke the Saga
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |