Package com.lmax.disruptor
Class IgnoreExceptionHandler
java.lang.Object
com.lmax.disruptor.IgnoreExceptionHandler
- All Implemented Interfaces:
ExceptionHandler<Object>
Convenience implementation of an exception handler that using standard JDK logging to log
the exception as
Level
.INFO-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEventException
(Throwable ex, long sequence, Object event) Strategy for handling uncaught exceptions when processing an event.void
Callback to notify of an exception duringLifecycleAware.onShutdown()
void
Callback to notify of an exception duringLifecycleAware.onStart()
-
Field Details
-
LOGGER
-
logger
-
-
Constructor Details
-
IgnoreExceptionHandler
public IgnoreExceptionHandler() -
IgnoreExceptionHandler
-
-
Method Details
-
handleEventException
Description copied from interface: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 aRuntimeException
.- Specified by:
handleEventException
in interfaceExceptionHandler<Object>
- 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
Description copied from interface:ExceptionHandler
Callback to notify of an exception duringLifecycleAware.onStart()
- Specified by:
handleOnStartException
in interfaceExceptionHandler<Object>
- Parameters:
ex
- throw during the starting process.
-
handleOnShutdownException
Description copied from interface:ExceptionHandler
Callback to notify of an exception duringLifecycleAware.onShutdown()
- Specified by:
handleOnShutdownException
in interfaceExceptionHandler<Object>
- Parameters:
ex
- throw during the shutdown process.
-