T
- the type of event being handled.public class ExceptionHandlerSetting<T>
extends java.lang.Object
disruptorWizard.handleExceptionsIn(eventHandler).with(exceptionHandler);
Modifier and Type | Field and Description |
---|---|
private ConsumerRepository<T> |
consumerRepository |
private EventHandler<T> |
eventHandler |
Constructor and Description |
---|
ExceptionHandlerSetting(EventHandler<T> eventHandler,
ConsumerRepository<T> consumerRepository) |
Modifier and Type | Method and Description |
---|---|
void |
with(ExceptionHandler<? super T> exceptionHandler)
Specify the
ExceptionHandler to use with the event handler. |
private final EventHandler<T> eventHandler
private final ConsumerRepository<T> consumerRepository
ExceptionHandlerSetting(EventHandler<T> eventHandler, ConsumerRepository<T> consumerRepository)
public void with(ExceptionHandler<? super T> exceptionHandler)
ExceptionHandler
to use with the event handler.exceptionHandler
- the exception handler to use.