-
- Type Parameters:
T- implementation storing the data for sharing during exchange or parallel coordination of an event.
- All Known Implementing Classes:
ExceptionHandlerWrapper,FatalExceptionHandler,IgnoreExceptionHandler
public interface ExceptionHandler<T>Callback handler for uncaught exceptions in the event processing cycle of theBatchEventProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleEventException(java.lang.Throwable ex, long sequence, T event)Strategy for handling uncaught exceptions when processing an event.voidhandleOnShutdownException(java.lang.Throwable ex)Callback to notify of an exception duringEventHandlerBase.onShutdown()voidhandleOnStartException(java.lang.Throwable ex)Callback to notify of an exception duringEventHandlerBase.onStart()
-
-
-
Method Detail
-
handleEventException
void handleEventException(java.lang.Throwable ex, long sequence, T event)Strategy for handling uncaught exceptions when processing an event.
If the strategy wishes to terminate further processing by the
BatchEventProcessorthen it should throw aRuntimeException.- Parameters:
ex- the exception that propagated from theEventHandler.sequence- of the event which cause the exception.event- being processed when the exception occurred. This can be null.
-
handleOnStartException
void handleOnStartException(java.lang.Throwable ex)
Callback to notify of an exception duringEventHandlerBase.onStart()- Parameters:
ex- throw during the starting process.
-
handleOnShutdownException
void handleOnShutdownException(java.lang.Throwable ex)
Callback to notify of an exception duringEventHandlerBase.onShutdown()- Parameters:
ex- throw during the shutdown process.
-
-