All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lmax.disruptor.dsl.ExceptionHandlerWrapper Maven / Gradle / Ivy

The newest version!
package com.lmax.disruptor.dsl;

import com.lmax.disruptor.ExceptionHandler;
import com.lmax.disruptor.FatalExceptionHandler;

public class ExceptionHandlerWrapper implements ExceptionHandler
{
    private ExceptionHandler delegate = new FatalExceptionHandler();

    public void switchTo(final ExceptionHandler 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