Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExponentialDelayStrategyParams

This is the interface with available parameters to set for an ExponentialDelayStrategy object.

Hierarchy

  • ExponentialDelayStrategyParams

Index

Properties

Optional backoffExponent

backoffExponent: number

The exponent to use for calculating the next delay time. For example, if the initial time is 200ms and the exponent is 2.0, the next delay will be 400ms, then 800ms, etc. The default value is 2.0.

Optional initialDelay

initialDelay: number

The time (in milliseconds) to wait before reconnecting to a server for the first time after a failed connection. The default value is 200 ms.

Optional jitter

jitter: number

The amount of 'jitter' to apply when calculating a delay time, measured in multiples of the initial delay. Jitter is used to reduce the number of simultaneous reconnects that may be issued from multiple clients. The default value is 1.0.

Optional maximumDelay

maximumDelay: number

The maximum time to wait for any reconnect attempt (milliseconds). Exponential backoff will not exceed this maximum. The default value is 20 s.

Optional maximumRetryTime

maximumRetryTime: number

The maximum time (milliseconds) to allow reconnect attempts to continue without a successful connection, before giving up and abandoning the connection attempt. If zero, the client never gives up. The default value is 0.