Class TransactionRetryInterceptorConfig

java.lang.Object
com.atlassian.confluence.internal.persistence.TransactionRetryInterceptorConfig

@Configuration public class TransactionRetryInterceptorConfig extends Object
The transactionRetryInterceptor() can be used to intercept transactional methods which may fail due to an optimistic locking failure or similar. The interceptor will retry the transaction according to the configured transactionRetryTemplate().

Transaction failures usually occur due to concurrent modifications of the same data. In Confluence, entities involved in the content reconciliation process (a lengthy transaction involving a network call to Synchrony), such as pages and attachments, are particularly susceptible to this issue.

Since:
9.1
See Also:
  • Constructor Details

    • TransactionRetryInterceptorConfig

      public TransactionRetryInterceptorConfig()
  • Method Details

    • transactionRetryTemplate

      public static org.springframework.retry.support.RetryTemplate transactionRetryTemplate()