Package software.amazon.awssdk.crt.io
Class StandardRetryOptions
- java.lang.Object
-
- software.amazon.awssdk.crt.io.StandardRetryOptions
-
public class StandardRetryOptions extends Object
Top-level configuration for http retries.
-
-
Constructor Summary
Constructors Constructor Description StandardRetryOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExponentialBackoffRetryOptions
getBackoffRetryOptions()
long
getInitialBucketCapacity()
StandardRetryOptions
withBackoffRetryOptions(ExponentialBackoffRetryOptions backoffRetryOptions)
Sets the exponential backoff configurationStandardRetryOptions
withInitialBucketCapacity(long initialBucketCapacity)
Sets the initial capacity of the token bucket in the standard retry strategy
-
-
-
Method Detail
-
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
-
-