Class FixedDelayRetryPolicy

  • All Implemented Interfaces:
    RetryPolicy

    public class FixedDelayRetryPolicy
    extends BaseRetryPolicy
    Delay policy with fixed delay between attempts.
    • Constructor Detail

      • FixedDelayRetryPolicy

        public FixedDelayRetryPolicy​(int maxNumAttempts,
                                     long delayMs)
    • Method Detail

      • getDelayMs

        protected long getDelayMs​(int currentAttempt)
        Description copied from class: BaseRetryPolicy
        Gets the delay in milliseconds before the next attempt.
        Specified by:
        getDelayMs in class BaseRetryPolicy
        Parameters:
        currentAttempt - Current attempt number
        Returns:
        Delay in milliseconds