Class DefaultSQLRecoveryStrategy
java.lang.Object
de.hybris.platform.jdbcwrapper.interceptor.recover.DefaultSQLRecoveryStrategy
- All Implemented Interfaces:
SQLRecoveryStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateBackoffDuration(int numberOfIterations) booleanprotected doubleprotected Config.DatabaseNameprotected intprotected intbooleanprotected static Map<Config.DatabaseName,Set<Integer>> mergeDBSpecificWithCommonErrorCodes(ConfigIntf config, Function<Config.DatabaseName, String> errorCodesKeyForDB) protected static final Stringprotected static final StringtoSetOfInts(String intsToSplit)
-
Constructor Details
-
DefaultSQLRecoveryStrategy
-
-
Method Details
-
calculateBackoffDuration
- Specified by:
calculateBackoffDurationin interfaceSQLRecoveryStrategy
-
isRecoverable
- Specified by:
isRecoverablein interfaceSQLRecoveryStrategy
-
canRecover
- Specified by:
canRecoverin interfaceSQLRecoveryStrategy
-
getInitialBackoffSeconds
protected int getInitialBackoffSeconds() -
getBackoffIncreaseFactor
protected double getBackoffIncreaseFactor() -
getMaxBackoffSeconds
protected int getMaxBackoffSeconds() -
getDataBaseType
-
mergeDBSpecificWithCommonErrorCodes
protected static Map<Config.DatabaseName,Set<Integer>> mergeDBSpecificWithCommonErrorCodes(ConfigIntf config, Function<Config.DatabaseName, String> errorCodesKeyForDB) -
recoverableErrorCodesKey
-
nonRecoverableErrorCodesKey
-
toSetOfInts
-