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.
public class ExceptionHandlerSetting<T> extends java.lang.Object
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
Fields Modifier and Type Field Description private ConsumerRepository<T>
consumerRepository
private EventHandler<T>
eventHandler
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerSetting(EventHandler<T> eventHandler, ConsumerRepository<T> consumerRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
with(ExceptionHandler<? super T> exceptionHandler)
Specify theExceptionHandler
to use with the event handler.
-
-
-
Field Detail
-
eventHandler
private final EventHandler<T> eventHandler
-
consumerRepository
private final ConsumerRepository<T> consumerRepository
-
-
Constructor Detail
-
ExceptionHandlerSetting
ExceptionHandlerSetting(EventHandler<T> eventHandler, ConsumerRepository<T> consumerRepository)
-
-
Method Detail
-
with
public void with(ExceptionHandler<? super T> exceptionHandler)
Specify theExceptionHandler
to use with the event handler.- Parameters:
exceptionHandler
- the exception handler to use.
-
-