Class ExponentialBackoffRetryStrategyConfig
- java.lang.Object
-
- com.amazonaws.kinesisvideo.producer.ExponentialBackoffRetryStrategyConfig
-
public class ExponentialBackoffRetryStrategyConfig extends Object
Configuration for exponential backoff retry strategy. This maps to the native ExponentialBackoffRetryStrategyConfig struct in PIC.Use 0 for any parameter to let PIC use its built-in default values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExponentialBackoffRetryStrategyConfig.ExponentialBackoffRetryStrategyConfigBuilderstatic interfaceExponentialBackoffRetryStrategyConfig.JitterFactorStepstatic classExponentialBackoffRetryStrategyConfig.JitterTypeJitter types that correspond to the native ExponentialBackoffJitterType enumstatic interfaceExponentialBackoffRetryStrategyConfig.JitterTypeStepstatic interfaceExponentialBackoffRetryStrategyConfig.MaxRetryCountStepstatic interfaceExponentialBackoffRetryStrategyConfig.MaxRetryWaitTimeStepstatic interfaceExponentialBackoffRetryStrategyConfig.MinTimeToResetRetryStateStepstatic interfaceExponentialBackoffRetryStrategyConfig.RetryFactorTimeStep
-
Field Summary
Fields Modifier and Type Field Description static longLIMIT_KVS_JITTER_FACTOR_MILLISECONDSstatic longLIMIT_KVS_MAX_WAIT_TIME_MILLISECONDSstatic longLIMIT_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDSstatic longLIMIT_KVS_RETRY_TIME_FACTOR_MILLISECONDSstatic longMIN_KVS_JITTER_FACTOR_MILLISECONDSstatic longMIN_KVS_MAX_WAIT_TIME_MILLISECONDSstatic longMIN_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDSstatic longMIN_KVS_RETRY_TIME_FACTOR_MILLISECONDSstatic longUSE_PIC_DEFAULT
-
Constructor Summary
Constructors Constructor Description ExponentialBackoffRetryStrategyConfig(ExponentialBackoffRetryStrategyConfig.ExponentialBackoffRetryStrategyConfigBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetJitterFactor()ExponentialBackoffRetryStrategyConfig.JitterTypegetJitterType()intgetJitterTypeValue()longgetMaxRetryCount()longgetMaxRetryWaitTimeMs()longgetMinTimeToResetRetryStateMs()longgetRetryFactorTimeMs()StringtoString()
-
-
-
Field Detail
-
USE_PIC_DEFAULT
public static final long USE_PIC_DEFAULT
- See Also:
- Constant Field Values
-
MIN_KVS_MAX_WAIT_TIME_MILLISECONDS
public static final long MIN_KVS_MAX_WAIT_TIME_MILLISECONDS
- See Also:
- Constant Field Values
-
LIMIT_KVS_MAX_WAIT_TIME_MILLISECONDS
public static final long LIMIT_KVS_MAX_WAIT_TIME_MILLISECONDS
- See Also:
- Constant Field Values
-
MIN_KVS_RETRY_TIME_FACTOR_MILLISECONDS
public static final long MIN_KVS_RETRY_TIME_FACTOR_MILLISECONDS
- See Also:
- Constant Field Values
-
LIMIT_KVS_RETRY_TIME_FACTOR_MILLISECONDS
public static final long LIMIT_KVS_RETRY_TIME_FACTOR_MILLISECONDS
- See Also:
- Constant Field Values
-
MIN_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDS
public static final long MIN_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDS
- See Also:
- Constant Field Values
-
LIMIT_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDS
public static final long LIMIT_KVS_MIN_TIME_TO_RESET_RETRY_STATE_MILLISECONDS
- See Also:
- Constant Field Values
-
MIN_KVS_JITTER_FACTOR_MILLISECONDS
public static final long MIN_KVS_JITTER_FACTOR_MILLISECONDS
- See Also:
- Constant Field Values
-
LIMIT_KVS_JITTER_FACTOR_MILLISECONDS
public static final long LIMIT_KVS_JITTER_FACTOR_MILLISECONDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExponentialBackoffRetryStrategyConfig
public ExponentialBackoffRetryStrategyConfig(@Nonnull ExponentialBackoffRetryStrategyConfig.ExponentialBackoffRetryStrategyConfigBuilder builder)
-
-
Method Detail
-
getMaxRetryCount
@CalledByNativeCode public long getMaxRetryCount()
-
getMaxRetryWaitTimeMs
@CalledByNativeCode public long getMaxRetryWaitTimeMs()
-
getRetryFactorTimeMs
@CalledByNativeCode public long getRetryFactorTimeMs()
-
getMinTimeToResetRetryStateMs
@CalledByNativeCode public long getMinTimeToResetRetryStateMs()
-
getJitterType
@Nullable public ExponentialBackoffRetryStrategyConfig.JitterType getJitterType()
-
getJitterTypeValue
@CalledByNativeCode public int getJitterTypeValue()
-
getJitterFactor
@CalledByNativeCode public long getJitterFactor()
-
-