Class ConstantReconnectionPolicy
A reconnection policy that waits a constant time between each reconnection attempt.
Implements
Inherited Members
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. |