Class ExponentialBackoffOptions


  • public class ExponentialBackoffOptions
    extends Object
    The configuration for exponential backoff that has a delay duration that exponentially increases with each retry attempt until an upper bound is reached after which every retry attempt is delayed by the provided max delay duration.
    • Constructor Detail

      • ExponentialBackoffOptions

        public ExponentialBackoffOptions()
    • Method Detail

      • getMaxRetries

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

        public Duration getBaseDelay()
        Gets the base delay duration for retry.
        Returns:
        The base delay duration for retry.
      • getMaxDelay

        public Duration getMaxDelay()
        Gets the max delay duration for retry.
        Returns:
        The max delay duration for retry.