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.withLoadBalancingPolicy(LoadBalancingPolicy policy)
Configures the load balancing policy to use for the new cluster.
|
Modifier and Type | Class and Description |
---|---|
class |
DCAwareRoundRobinPolicy
A data-center aware Round-robin load balancing policy.
|
class |
LatencyAwarePolicy
A wrapper load balancing policy that adds latency awareness to a child policy.
|
class |
RoundRobinPolicy
A Round-robin load balancing policy.
|
class |
TokenAwarePolicy
A wrapper load balancing policy that add token awareness to a child policy.
|
class |
WhiteListPolicy
A load balancing policy wrapper that ensure that only hosts from a provided
white list will ever be returned.
|
Modifier and Type | Method and Description |
---|---|
static LoadBalancingPolicy |
Policies.defaultLoadBalancingPolicy()
The default load balancing policy.
|
LoadBalancingPolicy |
Policies.getLoadBalancingPolicy()
The load balancing policy in use.
|
Modifier and Type | Method and Description |
---|---|
static LatencyAwarePolicy.Builder |
LatencyAwarePolicy.builder(LoadBalancingPolicy childPolicy)
Creates a new latency aware policy builder given the child policy
that the resulting policy should wrap.
|
Constructor and Description |
---|
LatencyAwarePolicy.Builder(LoadBalancingPolicy childPolicy)
Creates a new latency aware policy builder given the child policy
that the resulting policy wraps.
|
Policies(LoadBalancingPolicy loadBalancingPolicy,
ReconnectionPolicy reconnectionPolicy,
RetryPolicy retryPolicy)
Creates a new
Policies object using the provided policies. |
TokenAwarePolicy(LoadBalancingPolicy childPolicy)
Creates a new
TokenAware policy that wraps the provided child
load balancing policy. |
WhiteListPolicy(LoadBalancingPolicy childPolicy,
Collection<InetAddress> whiteList)
Create a new policy that wraps the provided child policy but only "allow" hosts
from the provided while list.
|
Copyright © 2014. All Rights Reserved.