Class StandardRetryOptions


  • public class StandardRetryOptions
    extends java.lang.Object
    Top-level configuration for http retries.
    • Constructor Detail

      • StandardRetryOptions

        public StandardRetryOptions()
    • Method Detail

      • withBackoffRetryOptions

        public StandardRetryOptions withBackoffRetryOptions​(ExponentialBackoffRetryOptions backoffRetryOptions)
        Sets the exponential backoff configuration
        Parameters:
        backoffRetryOptions - exponential backoff configuration
        Returns:
        this options object
      • withInitialBucketCapacity

        public StandardRetryOptions withInitialBucketCapacity​(long initialBucketCapacity)
        Sets the initial capacity of the token bucket in the standard retry strategy
        Parameters:
        initialBucketCapacity - initial token bucket capacity
        Returns:
        this options object
      • getInitialBucketCapacity

        public long getInitialBucketCapacity()
        Returns:
        current initial bucket capacity