Enum ExponentialBackoffRetryStrategyConfig.JitterType
- java.lang.Object
-
- java.lang.Enum<ExponentialBackoffRetryStrategyConfig.JitterType>
-
- com.amazonaws.kinesisvideo.producer.ExponentialBackoffRetryStrategyConfig.JitterType
-
- All Implemented Interfaces:
Serializable,Comparable<ExponentialBackoffRetryStrategyConfig.JitterType>
- Enclosing class:
- ExponentialBackoffRetryStrategyConfig
public static enum ExponentialBackoffRetryStrategyConfig.JitterType extends Enum<ExponentialBackoffRetryStrategyConfig.JitterType>
Jitter types that correspond to the native ExponentialBackoffJitterType enumJitter is added after the calculated wait time. For example for the default configuration in PIC:
- Wait: 1000ms + jitter
- Wait: 2000ms + jitter
- Wait: 4000ms + jitter
- Wait: 8000ms + jitter
- Wait: 16000ms + jitter
- Wait: 16000ms + jitter
- Wait: 16000ms + jitter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED_JITTERjitter = random number between[0, jitter factor)FULL_JITTERjitter = random number between[0, wait time)NO_JITTERjitter = 0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExponentialBackoffRetryStrategyConfig.JitterTypefromValue(int value)intgetValue()static ExponentialBackoffRetryStrategyConfig.JitterTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ExponentialBackoffRetryStrategyConfig.JitterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL_JITTER
public static final ExponentialBackoffRetryStrategyConfig.JitterType FULL_JITTER
jitter = random number between[0, wait time)This means the calculated wait time can be at most doubled.
-
FIXED_JITTER
public static final ExponentialBackoffRetryStrategyConfig.JitterType FIXED_JITTER
jitter = random number between[0, jitter factor)- See Also:
ExponentialBackoffRetryStrategyConfig.jitterFactorMs
-
NO_JITTER
public static final ExponentialBackoffRetryStrategyConfig.JitterType NO_JITTER
jitter = 0
-
-
Method Detail
-
values
public static ExponentialBackoffRetryStrategyConfig.JitterType[] 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 (ExponentialBackoffRetryStrategyConfig.JitterType c : ExponentialBackoffRetryStrategyConfig.JitterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExponentialBackoffRetryStrategyConfig.JitterType 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
-
getValue
public int getValue()
-
fromValue
public static ExponentialBackoffRetryStrategyConfig.JitterType fromValue(int value)
-
-