-
- All Known Implementing Classes:
EventuallyGiveUpBatchRewindStrategy
,NanosecondPauseBatchRewindStrategy
,SimpleBatchRewindStrategy
public interface BatchRewindStrategy
Strategy for handling a rewindableException when processing an event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RewindAction
handleRewindException(RewindableException e, int attempts)
When aRewindableException
is thrown, this will be called.
-
-
-
Method Detail
-
handleRewindException
RewindAction handleRewindException(RewindableException e, int attempts)
When aRewindableException
is 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
-
-