Click or drag to resize
Policies Class
Policies configured for a Cluster instance.
Inheritance Hierarchy
SystemObject
  CassandraPolicies

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public class Policies

The Policies type exposes the following members.

Constructors
  NameDescription
Public methodPolicies
Initializes a new instance of the Policies class
Public methodPolicies(ILoadBalancingPolicy, IReconnectionPolicy, IRetryPolicy)
Creates a new Policies object using the provided policies.
Top
Properties
  NameDescription
Public propertyStatic memberDefaultLoadBalancingPolicy
The default load balancing policy.

The default load balancing policy is TokenAwarePolicy with DCAwareRoundRobinPolicy as child policy.

Public propertyStatic memberDefaultPolicies
Public propertyStatic memberDefaultReconnectionPolicy
The default reconnection policy.

The default reconnection policy is an ExponentialReconnectionPolicy where the base delay is 1 second and the max delay is 10 minutes;

Public propertyStatic memberDefaultRetryPolicy
The default retry policy.

The default retry policy is DefaultRetryPolicy.

Public propertyStatic memberDefaultSpeculativeExecutionPolicy
The ISpeculativeExecutionPolicy to be used by default.

The default is NoSpeculativeExecutionPolicy.

Public propertyLoadBalancingPolicy
Gets the load balancing policy in use.

The load balancing policy defines how Cassandra hosts are picked for queries.

Public propertyReconnectionPolicy
Gets the reconnection policy in use.

The reconnection policy defines how often the driver tries to reconnect to a dead node.

Public propertyRetryPolicy
Gets the retry policy in use.

The retry policy defines in which conditions a query should be automatically retries by the driver.

Public propertySpeculativeExecutionPolicy
Gets the SpeculativeExecutionPolicy in use.
Top
See Also