Package com.lmax.disruptor
Interface BatchRewindStrategy
- All Known Implementing Classes:
EventuallyGiveUpBatchRewindStrategy,NanosecondPauseBatchRewindStrategy,SimpleBatchRewindStrategy
public interface BatchRewindStrategy
Strategy for handling a rewindableException when processing an event.
-
Method Summary
Modifier and TypeMethodDescriptionhandleRewindException(RewindableException e, int attempts) When aRewindableExceptionis thrown, this will be called.
-
Method Details
-
handleRewindException
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
-