Class AbstractRetryStrategy

    • Field Detail

      • totalTimes

        protected final int totalTimes
      • hasNextAttempt

        protected boolean hasNextAttempt
    • Constructor Detail

      • AbstractRetryStrategy

        public AbstractRetryStrategy​(int totalTimes,
                                     boolean hasNextAttempt)
    • Method Detail

      • hasNextAttempt

        public boolean hasNextAttempt()
        Description copied from interface: RetryStrategy
        Return the next attempt should execute or not.
        Specified by:
        hasNextAttempt in interface RetryStrategy