Package | Description |
---|---|
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 |
---|---|
DCAwareRoundRobinPolicy.Builder |
DCAwareRoundRobinPolicy.Builder.allowRemoteDCsForLocalConsistencyLevel()
Allows the policy to return remote hosts when building query plans for queries having consistency level
LOCAL_ONE
or LOCAL_QUORUM . |
static DCAwareRoundRobinPolicy.Builder |
DCAwareRoundRobinPolicy.builder()
Returns a builder to create a new instance.
|
DCAwareRoundRobinPolicy.Builder |
DCAwareRoundRobinPolicy.Builder.withLocalDc(String localDc)
Sets the name of the datacenter that will be considered "local" by the policy.
|
DCAwareRoundRobinPolicy.Builder |
DCAwareRoundRobinPolicy.Builder.withUsedHostsPerRemoteDc(int usedHostsPerRemoteDc)
Sets the number of hosts per remote datacenter that the policy should consider.
|
Copyright © 2012–2017. All rights reserved.