Class SalRetryConnectionCallback<T>
java.lang.Object
com.atlassian.confluence.internal.persistence.SalRetryConnectionCallback<T>
- All Implemented Interfaces:
- org.springframework.retry.RetryCallback<T,- RuntimeException> 
public class SalRetryConnectionCallback<T>
extends Object
implements org.springframework.retry.RetryCallback<T,RuntimeException> 
A helper class, defining the utility method 
execute(org.springframework.retry.support.RetryTemplate, com.atlassian.sal.api.rdbms.TransactionalExecutor, com.atlassian.sal.api.rdbms.ConnectionCallback<T>) to call TransactionalExecutor.execute(ConnectionCallback) with a RetryTemplate.- Since:
- 9.1
- 
Method SummaryModifier and TypeMethodDescriptiondoWithRetry(org.springframework.retry.RetryContext context) static <T> Texecute(org.springframework.retry.support.RetryTemplate retryTemplate, com.atlassian.sal.api.rdbms.TransactionalExecutor executor, com.atlassian.sal.api.rdbms.ConnectionCallback<T> callback) getLabel()
- 
Method Details- 
executepublic static <T> T execute(org.springframework.retry.support.RetryTemplate retryTemplate, com.atlassian.sal.api.rdbms.TransactionalExecutor executor, com.atlassian.sal.api.rdbms.ConnectionCallback<T> callback) 
- 
getLabel- Specified by:
- getLabelin interface- org.springframework.retry.RetryCallback<T,- RuntimeException> 
 
- 
doWithRetry- Specified by:
- doWithRetryin interface- org.springframework.retry.RetryCallback<T,- RuntimeException> 
- Throws:
- RuntimeException
 
 
-