Class ExponentialRetryConfigurationProperties

java.lang.Object
com.azure.spring.cloud.autoconfigure.properties.core.retry.ExponentialRetryConfigurationProperties
All Implemented Interfaces:
com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions

public class ExponentialRetryConfigurationProperties extends Object implements com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
Properties of the exponential retry mode.
  • Constructor Details

    • ExponentialRetryConfigurationProperties

      public ExponentialRetryConfigurationProperties()
  • Method Details

    • getMaxRetries

      public Integer getMaxRetries()
      Specified by:
      getMaxRetries in interface com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
    • setMaxRetries

      public void setMaxRetries(Integer maxRetries)
      Set the maximum number of attempts.
      Parameters:
      maxRetries - the maximum number of attempts.
    • getBaseDelay

      public Duration getBaseDelay()
      Specified by:
      getBaseDelay in interface com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
    • setBaseDelay

      public void setBaseDelay(Duration baseDelay)
      Set the amount of time to wait between retry attempts.
      Parameters:
      baseDelay - The delay to wait between retry attempts.
    • getMaxDelay

      public Duration getMaxDelay()
      Specified by:
      getMaxDelay in interface com.azure.spring.cloud.core.provider.RetryOptionsProvider.RetryOptions.ExponentialRetryOptions
    • setMaxDelay

      public void setMaxDelay(Duration maxDelay)
      Set the maximum permissible amount of time between retry attempts.
      Parameters:
      maxDelay - The maximum permissible amount of time between retry attempts.