public final class IgnoreExceptionHandler extends java.lang.Object implements ExceptionHandler<java.lang.Object>
Level
.INFOModifier and Type | Field and Description |
---|---|
private java.util.logging.Logger |
logger |
private static java.util.logging.Logger |
LOGGER |
Constructor and Description |
---|
IgnoreExceptionHandler() |
IgnoreExceptionHandler(java.util.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
handleEventException(java.lang.Throwable ex,
long sequence,
java.lang.Object event)
Strategy for handling uncaught exceptions when processing an event.
|
void |
handleOnShutdownException(java.lang.Throwable ex)
Callback to notify of an exception during
LifecycleAware.onShutdown() |
void |
handleOnStartException(java.lang.Throwable ex)
Callback to notify of an exception during
LifecycleAware.onStart() |
private static final java.util.logging.Logger LOGGER
private final java.util.logging.Logger logger
public IgnoreExceptionHandler()
public IgnoreExceptionHandler(java.util.logging.Logger logger)
public void handleEventException(java.lang.Throwable ex, long sequence, java.lang.Object event)
ExceptionHandler
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
.
handleEventException
in interface ExceptionHandler<java.lang.Object>
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.public void handleOnStartException(java.lang.Throwable ex)
ExceptionHandler
LifecycleAware.onStart()
handleOnStartException
in interface ExceptionHandler<java.lang.Object>
ex
- throw during the starting process.public void handleOnShutdownException(java.lang.Throwable ex)
ExceptionHandler
LifecycleAware.onShutdown()
handleOnShutdownException
in interface ExceptionHandler<java.lang.Object>
ex
- throw during the shutdown process.