Package com.lmax.disruptor
Class SimpleBatchRewindStrategy
java.lang.Object
com.lmax.disruptor.SimpleBatchRewindStrategy
- All Implemented Interfaces:
BatchRewindStrategy
Batch rewind strategy that always rewinds
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRewindException(RewindableException e, int retriesAttempted) When aRewindableExceptionis thrown, this will be called.
-
Constructor Details
-
SimpleBatchRewindStrategy
public SimpleBatchRewindStrategy()
-
-
Method Details
-
handleRewindException
Description copied from interface:BatchRewindStrategyWhen aRewindableExceptionis thrown, this will be called.- Specified by:
handleRewindExceptionin interfaceBatchRewindStrategy- Parameters:
e- the exception that propagated from theEventHandler.retriesAttempted- how many attempts there have been for the batch- Returns:
- the decision of whether to rewind the batch or throw the exception
-