Package software.amazon.awssdk.crt.io
Class StandardRetryOptions
java.lang.Object
software.amazon.awssdk.crt.io.StandardRetryOptions
Top-level configuration for http retries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
withBackoffRetryOptions
(ExponentialBackoffRetryOptions backoffRetryOptions) Sets the exponential backoff configurationwithInitialBucketCapacity
(long initialBucketCapacity) Sets the initial capacity of the token bucket in the standard retry strategy
-
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
- Returns:
- current exponential backoff retry options
-
withInitialBucketCapacity
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
-