org.springframework.data.jdbc.retry.oracle
Class RacFailoverRetryPolicy

java.lang.Object
  extended by org.springframework.retry.policy.ExceptionClassifierRetryPolicy
      extended by org.springframework.data.jdbc.retry.JdbcRetryPolicy
          extended by 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

Field Summary
 
Fields inherited from class org.springframework.data.jdbc.retry.JdbcRetryPolicy
logger
 
Constructor Summary
RacFailoverRetryPolicy()
           
 
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
 

Constructor Detail

RacFailoverRetryPolicy

public RacFailoverRetryPolicy()
Method Detail

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