Package com.lmax.disruptor.dsl
Class ExceptionHandlerSetting<T>
java.lang.Object
com.lmax.disruptor.dsl.ExceptionHandlerSetting<T>
- Type Parameters:
T- the type of event being handled.
A support class used as part of setting an exception handler for a specific event handler.
For example:
disruptorWizard.handleExceptionsIn(eventHandler).with(exceptionHandler);-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConsumerRepository<T> private final EventHandler<T> -
Constructor Summary
ConstructorsConstructorDescriptionExceptionHandlerSetting(EventHandler<T> eventHandler, ConsumerRepository<T> consumerRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidwith(ExceptionHandler<? super T> exceptionHandler) Specify theExceptionHandlerto use with the event handler.
-
Field Details
-
eventHandler
-
consumerRepository
-
-
Constructor Details
-
ExceptionHandlerSetting
ExceptionHandlerSetting(EventHandler<T> eventHandler, ConsumerRepository<T> consumerRepository)
-
-
Method Details
-
with
Specify theExceptionHandlerto use with the event handler.- Parameters:
exceptionHandler- the exception handler to use.
-