Policies Class |
Namespace: Cassandra
public class Policies
The Policies type exposes the following members.
Name | Description | |
---|---|---|
Policies | Initializes a new instance of the Policies class | |
Policies(ILoadBalancingPolicy, IReconnectionPolicy, IRetryPolicy) |
Creates a new Policies object using the provided policies.
|
Name | Description | |
---|---|---|
DefaultLoadBalancingPolicy | DEPRECATED: Use NewDefaultLoadBalancingPolicy(String) instead. Providing the local datacenter will be mandatory in the next major version of the driver. The default load balancing policy. The default load balancing policy is DefaultLoadBalancingPolicy as a wrapper around TokenAwarePolicy with DCAwareRoundRobinPolicy as child policy. | |
DefaultPolicies |
Gets a new instance Policies containing default policies of the driver.
| |
DefaultReconnectionPolicy |
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; | |
DefaultRetryPolicy |
The default retry policy.The default retry policy is DefaultRetryPolicy | |
DefaultSpeculativeExecutionPolicy |
The ISpeculativeExecutionPolicy to be used by default.
The default is NoSpeculativeExecutionPolicy. | |
DefaultTimestampGenerator |
Gets a new instance of the default ITimestampGenerator policy.
The default ITimestampGenerator is AtomicMonotonicTimestampGenerator | |
LoadBalancingPolicy |
Gets the load balancing policy in use. The load balancing policy defines how Cassandra hosts are picked for queries. | |
ReconnectionPolicy |
Gets the reconnection policy in use. The reconnection policy defines how often the driver tries to reconnect to a dead node. | |
RetryPolicy |
Gets the retry policy in use. The retry policy defines in which conditions a query should be automatically retries by the driver. | |
SpeculativeExecutionPolicy |
Gets the SpeculativeExecutionPolicy in use.
| |
TimestampGenerator |
Gets the ITimestampGenerator instance in use.
|
Name | Description | |
---|---|---|
NewDefaultLoadBalancingPolicy |
Creates a new instance of the default load balancing policy with the provided local datacenter.
This is equivalent to:
new DefaultLoadBalancingPolicy(new TokenAwarePolicy(new DCAwareRoundRobinPolicy(localDc))) |