public interface ExceptionHandler
BatchEventProcessor
Modifier and Type | Method and Description |
---|---|
void |
handleEventException(Throwable ex,
long sequence,
Object event)
Strategy for handling uncaught exceptions when processing an event.
|
void |
handleOnShutdownException(Throwable ex)
Callback to notify of an exception during
LifecycleAware.onShutdown() |
void |
handleOnStartException(Throwable ex)
Callback to notify of an exception during
LifecycleAware.onStart() |
void handleEventException(Throwable ex, long sequence, Object event)
Strategy for handling uncaught exceptions when processing an event.
If the strategy wishes to terminate further processing by the BatchEventProcessor
then it should throw a RuntimeException
.
ex
- the exception that propagated from the EventHandler
.sequence
- of the event which cause the exception.event
- being processed when the exception occurred. This can be null.void handleOnStartException(Throwable ex)
LifecycleAware.onStart()
ex
- throw during the starting process.void handleOnShutdownException(Throwable ex)
LifecycleAware.onShutdown()
ex
- throw during the shutdown process.Copyright © 2018. All rights reserved.