-
- All Known Implementing Classes:
EventuallyGiveUpBatchRewindStrategy,NanosecondPauseBatchRewindStrategy,SimpleBatchRewindStrategy
public interface BatchRewindStrategyStrategy for handling a rewindableException when processing an event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RewindActionhandleRewindException(RewindableException e, int attempts)When aRewindableExceptionis thrown, this will be called.
-
-
-
Method Detail
-
handleRewindException
RewindAction handleRewindException(RewindableException e, int attempts)
When aRewindableExceptionis thrown, this will be called.- Parameters:
e- the exception that propagated from theEventHandler.attempts- how many attempts there have been for the batch- Returns:
- the decision of whether to rewind the batch or throw the exception
-
-