Class FixedDelayOptions


  • public class FixedDelayOptions
    extends Object
    The configuration for a fixed-delay retry that has a fixed delay duration between each retry attempt.
    • Constructor Detail

      • FixedDelayOptions

        public FixedDelayOptions​(int maxRetries,
                                 Duration delay)
        Creates an instance of maxRetries.
        Parameters:
        maxRetries - The max number of retry attempts that can be made.
        delay - The fixed delay duration between retry attempts.
        Throws:
        IllegalArgumentException - If maxRetries is negative.
        NullPointerException - If delay is null.
    • Method Detail

      • getMaxRetries

        public int getMaxRetries()
        Gets the max retry attempts that can be made.
        Returns:
        The max retry attempts that can be made.
      • getDelay

        public Duration getDelay()
        Gets the max retry attempts that can be made.
        Returns:
        The max retry attempts that can be made.