Interface BatchRewindStrategy

All Known Implementing Classes:
EventuallyGiveUpBatchRewindStrategy, NanosecondPauseBatchRewindStrategy, SimpleBatchRewindStrategy

public interface BatchRewindStrategy
Strategy for handling a rewindableException when processing an event.
  • Method Details

    • handleRewindException

      RewindAction handleRewindException(RewindableException e, int attempts)
      When a RewindableException is thrown, this will be called.
      Parameters:
      e - the exception that propagated from the EventHandler.
      attempts - how many attempts there have been for the batch
      Returns:
      the decision of whether to rewind the batch or throw the exception