
com.lmax.disruptor.dsl.ExceptionHandlerWrapper Maven / Gradle / Ivy
package com.lmax.disruptor.dsl;
import com.lmax.disruptor.ExceptionHandler;
import com.lmax.disruptor.FatalExceptionHandler;
public class ExceptionHandlerWrapper implements ExceptionHandler
{
private ExceptionHandler super T> delegate = new FatalExceptionHandler();
public void switchTo(final ExceptionHandler super T> exceptionHandler)
{
this.delegate = exceptionHandler;
}
@Override
public void handleEventException(final Throwable ex, final long sequence, final T event)
{
delegate.handleEventException(ex, sequence, event);
}
@Override
public void handleOnStartException(final Throwable ex)
{
delegate.handleOnStartException(ex);
}
@Override
public void handleOnShutdownException(final Throwable ex)
{
delegate.handleOnShutdownException(ex);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy