Class ConstantReconnectionPolicy
A reconnection policy that waits a constant time between each reconnection attempt.
Inheritance
object
ConstantReconnectionPolicy
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class ConstantReconnectionPolicy : IReconnectionPolicy
Constructors
ConstantReconnectionPolicy(long)
Creates a reconnection policy that creates with the provided constant wait time between reconnection attempts.
Declaration
public ConstantReconnectionPolicy(long constantDelayMs)
Parameters
Type | Name | Description |
---|---|---|
long | constantDelayMs | the constant delay in milliseconds to use. |
Properties
ConstantDelayMs
Gets the constant delay used by this reconnection policy.
Declaration
public long ConstantDelayMs { get; }
Property Value
Type | Description |
---|---|
long |
Methods
NewSchedule()
A new schedule that uses a constant ConstantDelayMs
delay between reconnection attempt.
Declaration
public IReconnectionSchedule NewSchedule()
Returns
Type | Description |
---|---|
IReconnectionSchedule | the newly created schedule. |