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
  CassandraExponentialReconnectionPolicy

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.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
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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
See Also