Package software.amazon.awssdk.crt.io
Enum ExponentialBackoffRetryOptions.JitterMode
- java.lang.Object
-
- java.lang.Enum<ExponentialBackoffRetryOptions.JitterMode>
-
- software.amazon.awssdk.crt.io.ExponentialBackoffRetryOptions.JitterMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ExponentialBackoffRetryOptions.JitterMode>
- Enclosing class:
- ExponentialBackoffRetryOptions
public static enum ExponentialBackoffRetryOptions.JitterMode extends Enum<ExponentialBackoffRetryOptions.JitterMode>
What kind of jitter or randomization to apply to the backoff time interval https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Decorrelated
Backoff is taken randomly from the interval between the base backoff interval and a scaling (greater than 1) of the current backoff valueDefault
Maps to FullFull
Choose an actual backoff interval between [0, MaxCurrentBackoff] where MaxCurrentBackoff is the standard exponential backoff valueNone
Do not apply any jitter or randomization to the backoff interval
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExponentialBackoffRetryOptions.JitterMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExponentialBackoffRetryOptions.JitterMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Default
public static final ExponentialBackoffRetryOptions.JitterMode Default
Maps to Full
-
None
public static final ExponentialBackoffRetryOptions.JitterMode None
Do not apply any jitter or randomization to the backoff interval
-
Full
public static final ExponentialBackoffRetryOptions.JitterMode Full
Choose an actual backoff interval between [0, MaxCurrentBackoff] where MaxCurrentBackoff is the standard exponential backoff value
-
Decorrelated
public static final ExponentialBackoffRetryOptions.JitterMode Decorrelated
Backoff is taken randomly from the interval between the base backoff interval and a scaling (greater than 1) of the current backoff value
-
-
Method Detail
-
values
public static ExponentialBackoffRetryOptions.JitterMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExponentialBackoffRetryOptions.JitterMode c : ExponentialBackoffRetryOptions.JitterMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExponentialBackoffRetryOptions.JitterMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-