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.
|
Modifier and Type | Method and Description |
---|---|
Policies.Builder |
Policies.Builder.withReconnectionPolicy(ReconnectionPolicy reconnectionPolicy)
Sets the reconnection policy.
|
Copyright © 2012–2020. All rights reserved.