private Integer getTransientSQLErrorRetrySleepTime ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getTransientSQLErrorRetrySleepTime" ) ; Integer transientSqlRetrySleepTime = null ; try { transientSqlRetrySleepTime = AccessController . doPrivileged ( new PrivilegedExceptionAction < Integer > ( ) { @ Override public Integer run ( ) { return Integer . getInteger ( "com.ibm.ws.recoverylog.custom.jdbc.impl.TransientRetrySleepTime" , DEFAULT_TRANSIENT_RETRY_SLEEP_TIME ) ; } } ) ; } catch ( PrivilegedActionException e ) { FFDCFilter . processException ( e , "com.ibm.ws.recoverylog.custom.jdbc.impl.SqlMultiScopeRecoveryLog.getTransientSQLErrorRetrySleepTime" , "132" ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Exception setting transient SQL retry sleep time" , e ) ; transientSqlRetrySleepTime = null ; } if ( transientSqlRetrySleepTime == null ) transientSqlRetrySleepTime = Integer . valueOf ( DEFAULT_TRANSIENT_RETRY_SLEEP_TIME ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getTransientSQLErrorRetrySleepTime" , transientSqlRetrySleepTime ) ; return transientSqlRetrySleepTime ; }
This method retrieves a system property named com . ibm . ws . recoverylog . custom . jdbc . impl . TransientRetrySleepTime which allows a value to be specified for the time we should sleep between attempts to get a connection and retry SQL work in the face of transient sql error conditions .