Interface ExceptionHandler<T>

All Known Implementing Classes:
ExceptionHandlerWrapper, FatalExceptionHandler, IgnoreExceptionHandler

public interface ExceptionHandler<T>
Callback handler for uncaught exceptions in the event processing cycle of the BatchEventProcessor
  • Method Details

    • handleEventException

      void handleEventException(Throwable ex, long sequence, T event)

      Strategy for handling uncaught exceptions when processing an event.

      If the strategy wishes to terminate further processing by the BatchEventProcessor then it should throw a RuntimeException.

      Parameters:
      ex - the exception that propagated from the EventHandler.
      sequence - of the event which cause the exception.
      event - being processed when the exception occurred. This can be null.
    • handleOnStartException

      void handleOnStartException(Throwable ex)
      Callback to notify of an exception during LifecycleAware.onStart()
      Parameters:
      ex - throw during the starting process.
    • handleOnShutdownException

      void handleOnShutdownException(Throwable ex)
      Callback to notify of an exception during LifecycleAware.onShutdown()
      Parameters:
      ex - throw during the shutdown process.