Class RetrySettings

java.lang.Object
com.gooddata.sdk.service.retry.RetrySettings

public class RetrySettings extends Object
Contains settings for HTTP requests retry.
  • Field Details

    • DEFAULT_RETRY_COUNT

      public Integer DEFAULT_RETRY_COUNT
  • Constructor Details

    • RetrySettings

      public RetrySettings()
  • Method Details

    • getRetryCount

      public Integer getRetryCount()
      Total retry count. Should be > 0. No retry if not set.
      Returns:
      retry count
    • setRetryCount

      public void setRetryCount(Integer retryCount)
    • getRetryInitialInterval

      public Long getRetryInitialInterval()
      Returns:
      retry initial interval
    • setRetryInitialInterval

      public void setRetryInitialInterval(Long retryInitialInterval)
    • getRetryMaxInterval

      public Long getRetryMaxInterval()
      Returns:
      maximum retry interval
    • setRetryMaxInterval

      public void setRetryMaxInterval(Long retryMaxInterval)
    • getRetryMultiplier

      public Double getRetryMultiplier()
      If set, exponential strategy is used. Every next retry interval will be computed as previos interval multiplied by this number.
      Returns:
      retry multiplier
    • setRetryMultiplier

      public void setRetryMultiplier(Double retryMultiplier)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object