Class RetryPolicy

    • Constructor Detail

      • RetryPolicy

        public RetryPolicy()
      • RetryPolicy

        public RetryPolicy​(RetryPolicy source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getRetryInterval

        public Long getRetryInterval()
        Get 重试间隔 单位:秒
        Returns:
        RetryInterval 重试间隔 单位:秒
      • setRetryInterval

        public void setRetryInterval​(Long RetryInterval)
        Set 重试间隔 单位:秒
        Parameters:
        RetryInterval - 重试间隔 单位:秒
      • getMaxRetryAttempts

        public Long getMaxRetryAttempts()
        Get 最大重试次数
        Returns:
        MaxRetryAttempts 最大重试次数
      • setMaxRetryAttempts

        public void setMaxRetryAttempts​(Long MaxRetryAttempts)
        Set 最大重试次数
        Parameters:
        MaxRetryAttempts - 最大重试次数