| 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 | 
|---|---|
RetryPolicy | 
StatementWrapper.getRetryPolicy()  | 
RetryPolicy | 
Statement.getRetryPolicy()
Returns the retry policy sets for this query, if any. 
 | 
RetryPolicy | 
PreparedStatement.getRetryPolicy()
Returns the retry policy sets for this prepared statement, if any. 
 | 
RetryPolicy | 
DefaultPreparedStatement.getRetryPolicy()  | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
StatementWrapper.setRetryPolicy(RetryPolicy policy)  | 
Statement | 
Statement.setRetryPolicy(RetryPolicy policy)
Sets the retry policy to use for this query. 
 | 
PreparedStatement | 
PreparedStatement.setRetryPolicy(RetryPolicy policy)
Convenience method to set a default retry policy for the  
BoundStatement
 created from this prepared statement. | 
PreparedStatement | 
DefaultPreparedStatement.setRetryPolicy(RetryPolicy policy)  | 
Cluster.Builder | 
Cluster.Builder.withRetryPolicy(RetryPolicy policy)
Configures the retry policy to use for the new cluster. 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
ExtendedRetryPolicy
A policy that defines a default behavior to adopt in the event of unexpected errors. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
DefaultRetryPolicy
The default retry policy. 
 | 
class  | 
DowngradingConsistencyRetryPolicy
A retry policy that sometimes retries with a lower consistency level than
 the one initially requested. 
 | 
class  | 
FallthroughRetryPolicy
A retry policy that never retries (nor ignores). 
 | 
class  | 
IdempotenceAwareRetryPolicy
A retry policy that avoids retrying non-idempotent statements. 
 | 
class  | 
LoggingRetryPolicy
A retry policy that wraps another policy, logging the decision made by its sub-policy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static RetryPolicy | 
Policies.defaultRetryPolicy()
The default retry policy. 
 | 
RetryPolicy | 
Policies.getRetryPolicy()
The retry policy in use. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Policies.Builder | 
Policies.Builder.withRetryPolicy(RetryPolicy retryPolicy)
Sets the retry policy. 
 | 
| Constructor and Description | 
|---|
LoggingRetryPolicy(RetryPolicy policy)
Creates a new  
RetryPolicy that logs the decision of policy. | 
Policies(LoadBalancingPolicy loadBalancingPolicy,
        ReconnectionPolicy reconnectionPolicy,
        RetryPolicy retryPolicy)
Deprecated. 
 
this constructor is provided for backward compatibility.
 Use  
Policies.builder() instead. | 
Policies(LoadBalancingPolicy loadBalancingPolicy,
        ReconnectionPolicy reconnectionPolicy,
        RetryPolicy retryPolicy,
        AddressTranslater addressTranslater)
Deprecated. 
 
this constructor is provided for backward compatibility.
 Use  
Policies.builder() instead. | 
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)
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. |