Class Retry


  • public class Retry
    extends Object
    重试策略
    • Constructor Detail

      • Retry

        public Retry()
    • Method Detail

      • getName

        public String getName()
        重试策略名称,在单个流程中,名称需要唯一
        Returns:
        name
      • setName

        public void setName​(String name)
      • withDelay

        public Retry withDelay​(Long delay)
      • getDelay

        public Long getDelay()
        重试间隔,单位:秒。若不传,默认为1 minimum: 1 maximum: 30
        Returns:
        delay
      • setDelay

        public void setDelay​(Long delay)
      • withMaxAttempts

        public Retry withMaxAttempts​(Long maxAttempts)
      • getMaxAttempts

        public Long getMaxAttempts()
        最大重试次数,。若不传,默认为3 minimum: 1 maximum: 8
        Returns:
        maxAttempts
      • setMaxAttempts

        public void setMaxAttempts​(Long maxAttempts)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object