Package com.lmax.disruptor.dsl
Class ExceptionHandlerWrapper<T>
java.lang.Object
com.lmax.disruptor.dsl.ExceptionHandlerWrapper<T>
- All Implemented Interfaces:
ExceptionHandler<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ExceptionHandler
<? super T> void
handleEventException
(Throwable ex, long sequence, T 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()
void
switchTo
(ExceptionHandler<? super T> exceptionHandler)
-
Field Details
-
delegate
-
-
Constructor Details
-
ExceptionHandlerWrapper
public ExceptionHandlerWrapper()
-
-
Method Details
-
switchTo
-
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<T>
- 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<T>
- 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<T>
- Parameters:
ex
- throw during the shutdown process.
-
getExceptionHandler
-