Click or drag to resize

ExponentialReconnectionPolicy Class

A reconnection policy that waits exponentially longer between each reconnection attempt (but keeps a constant delay once a maximum delay is reached).
Inheritance Hierarchy
SystemObject
  DseExponentialReconnectionPolicy

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class ExponentialReconnectionPolicy : IReconnectionPolicy

The ExponentialReconnectionPolicy type exposes the following members.

Constructors
  NameDescription
Public methodExponentialReconnectionPolicy
Creates a reconnection policy waiting exponentially longer for each new attempt.
Top
Properties
  NameDescription
Public propertyBaseDelayMs
Gets the base delay in milliseconds for this policy (e.g. the delay before the first reconnection attempt).
Public propertyMaxDelayMs
Gets the maximum delay in milliseconds between reconnection attempts for this policy.
Top
Methods
  NameDescription
Public methodNewSchedule
A new schedule that used an exponentially growing delay between reconnection attempts.

For this schedule, reconnection attempt i will be tried Math.min(2^(i-1) * BaseDelayMs, MaxDelayMs) milliseconds after the previous one.

Top
See Also

Reference