Class RetryProperties

java.lang.Object
org.springframework.cloud.config.client.RetryProperties

@ConfigurationProperties("spring.cloud.config.retry") public class RetryProperties extends Object
Author:
Dave Syer
  • Field Details

  • Constructor Details

    • RetryProperties

      public RetryProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getInitialInterval

      public long getInitialInterval()
    • setInitialInterval

      public void setInitialInterval(long initialInterval)
    • getMultiplier

      public double getMultiplier()
    • setMultiplier

      public void setMultiplier(double multiplier)
    • getMaxInterval

      public long getMaxInterval()
    • setMaxInterval

      public void setMaxInterval(long maxInterval)
    • getMaxAttempts

      public int getMaxAttempts()
    • setMaxAttempts

      public void setMaxAttempts(int maxAttempts)
    • isUseRandomPolicy

      @Deprecated(since="5.1.0", forRemoval=true) @DeprecatedConfigurationProperty(since="5.1.0", reason="Randomized backoff will be removed in favor of the deterministic exponential backoff.") public boolean isUseRandomPolicy()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 5.1.0 in favor of the deterministic exponential backoff.
      Returns:
      whether a random exponential backoff policy is used.
    • setUseRandomPolicy

      @Deprecated(since="5.1.0", forRemoval=true) public void setUseRandomPolicy(boolean useRandomPolicy)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 5.1.0 in favor of the deterministic exponential backoff.
      Parameters:
      useRandomPolicy - whether to use a random exponential backoff policy.