ExponentialBackoffOptions
Defined in: src/pattern/BackoffPolicy.ts:31
Properties
Section titled “Properties”
readonlymaxMs:number
Defined in: src/pattern/BackoffPolicy.ts:35
Ceiling for the delay, in ms.
readonlyminMs:number
Defined in: src/pattern/BackoffPolicy.ts:33
Floor for the delay, in ms. The first restart delay is at least this.
random?
Section titled “random?”
readonlyoptionalrandom?: () =>number
Defined in: src/pattern/BackoffPolicy.ts:43
Override Math.random for deterministic tests.
Returns
Section titled “Returns”number
randomFactor?
Section titled “randomFactor?”
readonlyoptionalrandomFactor?:number
Defined in: src/pattern/BackoffPolicy.ts:41
Jitter fraction in [0, 1]. The actual delay is multiplied by
1 + random(-randomFactor, +randomFactor) so two replicas don’t
synchronise. Default 0.2.