Class StandardRetryOptions

java.lang.Object
software.amazon.awssdk.crt.io.StandardRetryOptions

public class StandardRetryOptions extends Object
Top-level configuration for http retries.
  • Constructor Details

    • StandardRetryOptions

      public StandardRetryOptions()
  • Method Details

    • withBackoffRetryOptions

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

      public ExponentialBackoffRetryOptions getBackoffRetryOptions()
      Returns:
      current exponential backoff retry options
    • 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