Class OpenSearchRetryRegistryConfig

java.lang.Object
com.atlassian.confluence.plugins.opensearch.spring.OpenSearchRetryRegistryConfig

@Configuration public class OpenSearchRetryRegistryConfig extends Object
Adding resiliency to OpenSearch operations using Resilience4j. Different operations can use different retry config (or the same one). Retries config need to be added in this class. See SimpleBulkOperationBuffer.flush() for usage.

By default:

  • Three attempts
  • Retries on IOException and 5xx Server Error
  • Exponential backoff
Since:
9.0.0
  • Constructor Details

    • OpenSearchRetryRegistryConfig

      public OpenSearchRetryRegistryConfig()
  • Method Details

    • retryRegistry

      @Bean public io.github.resilience4j.retry.RetryRegistry retryRegistry()
      Configures the default retry config and all named retries used by OpenSearch. Configure your retries here.
      Returns:
      the RetryRegistry so that Spring can inject it