Class RetrySettings


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

      • DEFAULT_RETRY_COUNT

        public Integer DEFAULT_RETRY_COUNT
    • Constructor Detail

      • RetrySettings

        public RetrySettings()
    • Method Detail

      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object