public class DefaultSQLRecoveryStrategy extends java.lang.Object implements SQLRecoveryStrategy
| Constructor and Description |
|---|
DefaultSQLRecoveryStrategy(ConfigIntf config) |
| Modifier and Type | Method and Description |
|---|---|
java.time.Duration |
calculateBackoffDuration(int numberOfIterations) |
boolean |
canRecover(JDBCInterceptorContext ctx) |
protected double |
getBackoffIncreaseFactor() |
protected Config.DatabaseName |
getDataBaseType() |
protected int |
getInitialBackoffSeconds() |
protected int |
getMaxBackoffSeconds() |
boolean |
isRecoverable(java.sql.SQLException e) |
protected static java.util.Map<Config.DatabaseName,java.util.Set<java.lang.Integer>> |
mergeRecoverableErrorCodes(ConfigIntf config) |
protected static java.lang.String |
recoverableErrorCodesKey(Config.DatabaseName name) |
protected static java.util.Set<java.lang.Integer> |
toSetOfInts(java.lang.String intsToSplit) |
public DefaultSQLRecoveryStrategy(ConfigIntf config)
public java.time.Duration calculateBackoffDuration(int numberOfIterations)
calculateBackoffDuration in interface SQLRecoveryStrategypublic boolean isRecoverable(java.sql.SQLException e)
isRecoverable in interface SQLRecoveryStrategypublic boolean canRecover(JDBCInterceptorContext ctx)
canRecover in interface SQLRecoveryStrategyprotected int getInitialBackoffSeconds()
protected double getBackoffIncreaseFactor()
protected int getMaxBackoffSeconds()
protected Config.DatabaseName getDataBaseType()
protected static java.util.Map<Config.DatabaseName,java.util.Set<java.lang.Integer>> mergeRecoverableErrorCodes(ConfigIntf config)
protected static final java.lang.String recoverableErrorCodesKey(Config.DatabaseName name)
protected static java.util.Set<java.lang.Integer> toSetOfInts(java.lang.String intsToSplit)
Copyright © 2018 SAP SE. All Rights Reserved.