Package io.deephaven.util
Class RetryBackoffContext.Exponential.Params
java.lang.Object
io.deephaven.util.RetryBackoffContext.Exponential.Params
- Enclosing class:
- RetryBackoffContext.Exponential
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double
final long
final double
final long
-
Constructor Summary
ConstructorsConstructorDescriptionParams
(long initialDelayMillis, long maxDelayMillis, double backoffFactor, double jitterFactor) Parameters for an Exponential Backoff Context -
Method Summary
-
Field Details
-
initialDelayMillis
public final long initialDelayMillis -
maxDelayMillis
public final long maxDelayMillis -
backoffFactor
public final double backoffFactor -
jitterFactor
public final double jitterFactor
-
-
Constructor Details
-
Params
public Params(long initialDelayMillis, long maxDelayMillis, double backoffFactor, double jitterFactor) Parameters for an Exponential Backoff Context- Parameters:
initialDelayMillis
- Initial delay to retry. Subsequent retries happen at double the previous retry delay as long as that value does not exceed the max delay; when double the previous value would exceed the max delay and from then on the max delay is used.maxDelayMillis
- max delay to apply; once the exponential increase of initial reaches this value, retries happen linearly at this value; they wait the same amount for every subsequent retry.backoffFactor
- multiplier factor to apply to a delay to get the next delay; this factor is applied as long as the result is below the max delay, at that point each subsequent delay is that max delay.jitterFactor
- a factor to apply to randomize the exact retry delay; a given calculated delay is randomized in the interval[(1-jitterFactor)*delay, (1+jitterFactor)*delay]
-