Class NoDelayRetryPolicy

  • All Implemented Interfaces:
    RetryPolicy

    public class NoDelayRetryPolicy
    extends BaseRetryPolicy
    Retry policy without delay between attempts.
    • Constructor Detail

      • NoDelayRetryPolicy

        public NoDelayRetryPolicy​(int maxNumAttempts)
    • 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