Package com.kenshoo.pl.entity
Class DeadlockRetryer
- java.lang.Object
-
- com.kenshoo.pl.entity.DeadlockRetryer
-
- All Implemented Interfaces:
PersistenceLayerRetryer
public class DeadlockRetryer extends java.lang.Object implements PersistenceLayerRetryer
-
-
Field Summary
-
Fields inherited from interface com.kenshoo.pl.entity.spi.PersistenceLayerRetryer
JUST_RUN_WITHOUT_CHECKING_DEADLOCKS
-
-
Constructor Summary
Constructors Constructor Description DeadlockRetryer(DeadlockDetector deadlockDetector, TransactionDetector transactionDetector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(ThrowingAction action)DeadlockRetryersetFirstSleepBetweenRetriesMillis(long firstSleepBetweenRetriesMillis)DeadlockRetryersetIncrementSleepBetweenRetriesMillis(long incrementSleepBetweenRetriesMillis)DeadlockRetryersetMaxDeadlockRetries(int maxDeadlockRetries)
-
-
-
Constructor Detail
-
DeadlockRetryer
public DeadlockRetryer(DeadlockDetector deadlockDetector, TransactionDetector transactionDetector)
-
-
Method Detail
-
run
public void run(ThrowingAction action)
- Specified by:
runin interfacePersistenceLayerRetryer
-
setMaxDeadlockRetries
public DeadlockRetryer setMaxDeadlockRetries(int maxDeadlockRetries)
-
setFirstSleepBetweenRetriesMillis
public DeadlockRetryer setFirstSleepBetweenRetriesMillis(long firstSleepBetweenRetriesMillis)
-
setIncrementSleepBetweenRetriesMillis
public DeadlockRetryer setIncrementSleepBetweenRetriesMillis(long incrementSleepBetweenRetriesMillis)
-
-