Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withSpeculativeExecutionPolicy(SpeculativeExecutionPolicy policy)
Configures the speculative execution policy to use for the new cluster.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantSpeculativeExecutionPolicy
A
SpeculativeExecutionPolicy that schedules a given number of speculative executions, separated by a fixed delay. |
class |
NoSpeculativeExecutionPolicy
A
SpeculativeExecutionPolicy that never schedules speculative executions. |
class |
PercentileSpeculativeExecutionPolicy
A policy that triggers speculative executions when the request to the current host is above a given percentile.
|
Modifier and Type | Method and Description |
---|---|
static SpeculativeExecutionPolicy |
Policies.defaultSpeculativeExecutionPolicy()
The default speculative retry policy.
|
SpeculativeExecutionPolicy |
Policies.getSpeculativeExecutionPolicy()
The speculative execution policy in use.
|
Modifier and Type | Method and Description |
---|---|
Policies.Builder |
Policies.Builder.withSpeculativeExecutionPolicy(SpeculativeExecutionPolicy speculativeExecutionPolicy)
Sets the speculative execution policy.
|
Constructor and Description |
---|
Policies(LoadBalancingPolicy loadBalancingPolicy,
ReconnectionPolicy reconnectionPolicy,
RetryPolicy retryPolicy,
AddressTranslater addressTranslater,
SpeculativeExecutionPolicy speculativeExecutionPolicy)
Deprecated.
this constructor is provided for backward compatibility.
Use
Policies.builder() instead. |
Policies(LoadBalancingPolicy loadBalancingPolicy,
ReconnectionPolicy reconnectionPolicy,
RetryPolicy retryPolicy,
AddressTranslater addressTranslater,
TimestampGenerator timestampGenerator,
SpeculativeExecutionPolicy speculativeExecutionPolicy)
Deprecated.
this constructor is exposed for backward compatibility.
Use
Policies.builder() instead. |
Policies(LoadBalancingPolicy loadBalancingPolicy,
ReconnectionPolicy reconnectionPolicy,
RetryPolicy retryPolicy,
SpeculativeExecutionPolicy speculativeExecutionPolicy)
Deprecated.
this constructor is provided for backward compatibility.
Use
Policies.builder() instead. |