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.withReconnectionPolicy(ReconnectionPolicy policy)
Configures the reconnection policy to use for the new cluster.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstantReconnectionPolicy
A reconnection policy that waits a constant time between each reconnection attempt.
|
class |
ExponentialReconnectionPolicy
A reconnection policy that waits exponentially longer between each
reconnection attempt (but keeps a constant delay once a maximum delay is
reached).
|
Modifier and Type | Method and Description |
---|---|
static ReconnectionPolicy |
Policies.defaultReconnectionPolicy()
The default reconnection policy.
|
ReconnectionPolicy |
Policies.getReconnectionPolicy()
The reconnection policy in use.
|
Constructor and Description |
---|
Policies(LoadBalancingPolicy loadBalancingPolicy,
ReconnectionPolicy reconnectionPolicy,
RetryPolicy retryPolicy)
Creates a new
Policies object using the provided policies. |
Copyright © 2014. All Rights Reserved.