Class FixedReconnectionPolicy
Represents a reconnection policy that is possible to specify custom reconnection delays for each attempt.
Implements
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class FixedReconnectionPolicy : IReconnectionPolicy
Constructors
FixedReconnectionPolicy(params long[])
Creates a new instance of a reconnection policy for which is possible to specify custom reconnection delays for each attempt.
The last delay provided will be used for the rest of the attempts.
Declaration
public FixedReconnectionPolicy(params long[] delays)
Parameters
Type | Name | Description |
---|---|---|
long[] | delays |
Properties
Delays
Gets a copy of the provided _delays array.
Declaration
public long[] Delays { get; }
Property Value
Type | Description |
---|---|
long[] |
Methods
NewSchedule()
Creates a new schedule for reconnection attempts.
Declaration
public IReconnectionSchedule NewSchedule()
Returns
Type | Description |
---|---|
IReconnectionSchedule |