org.springframework.data.jdbc.retry.oracle
Class RacFailoverRetryPolicy
java.lang.Object
org.springframework.retry.policy.ExceptionClassifierRetryPolicy
org.springframework.data.jdbc.retry.JdbcRetryPolicy
org.springframework.data.jdbc.retry.oracle.RacFailoverRetryPolicy
- All Implemented Interfaces:
- org.springframework.retry.RetryPolicy
public class RacFailoverRetryPolicy
- extends org.springframework.data.jdbc.retry.JdbcRetryPolicy
A JdbcRetryPolicy that will handle determining whether error codes are considered to
indicate a recoverable error condition.
- Since:
- 1.0
- See Also:
JdbcRetryPolicy
| Fields inherited from class org.springframework.data.jdbc.retry.JdbcRetryPolicy |
logger |
|
Method Summary |
boolean |
canRetry(org.springframework.retry.RetryContext retryContext)
If retry is not to be attempted, clear the RacRetry ThreadLocal |
void |
setRecoverableErrorCodes(Integer[] recoverableErrorCodes)
|
| Methods inherited from class org.springframework.data.jdbc.retry.JdbcRetryPolicy |
getMaxNumberOfRetries, getRecoverableErrorCodes, setMaxNumberOfRetries |
| Methods inherited from class org.springframework.retry.policy.ExceptionClassifierRetryPolicy |
close, open, registerThrowable, setExceptionClassifier, setPolicyMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RacFailoverRetryPolicy
public RacFailoverRetryPolicy()
setRecoverableErrorCodes
public void setRecoverableErrorCodes(Integer[] recoverableErrorCodes)
- Overrides:
setRecoverableErrorCodes in class org.springframework.data.jdbc.retry.JdbcRetryPolicy
canRetry
public boolean canRetry(org.springframework.retry.RetryContext retryContext)
- If retry is not to be attempted, clear the RacRetry ThreadLocal
- Specified by:
canRetry in interface org.springframework.retry.RetryPolicy- Overrides:
canRetry in class org.springframework.data.jdbc.retry.JdbcRetryPolicy