public class JdbcRetryPolicy
extends org.springframework.retry.policy.ExceptionClassifierRetryPolicy
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
JdbcRetryPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRetry(org.springframework.retry.RetryContext retryContext)
This gets called for any new invocation.
|
int |
getMaxNumberOfRetries() |
Integer[] |
getRecoverableErrorCodes() |
void |
setMaxNumberOfRetries(int maxNumberOfRetries) |
void |
setRecoverableErrorCodes(Integer[] recoverableErrorCodes) |
public Integer[] getRecoverableErrorCodes()
public void setRecoverableErrorCodes(Integer[] recoverableErrorCodes)
public int getMaxNumberOfRetries()
public void setMaxNumberOfRetries(int maxNumberOfRetries)
public boolean canRetry(org.springframework.retry.RetryContext retryContext)
canRetry
in interface org.springframework.retry.RetryPolicy
canRetry
in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy