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.
|
com.datastax.driver.dse |
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.
|
Modifier and Type | Method and Description |
---|---|
DseCluster.Builder |
DseCluster.Builder.withSpeculativeExecutionPolicy(SpeculativeExecutionPolicy policy) |
Copyright © 2012–2017. All rights reserved.