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 |
---|---|
Collection<Host.StateListener> |
Cluster.Initializer.getInitialListeners()
Optional listeners to register against the newly created cluster.
|
Collection<Host.StateListener> |
Cluster.Builder.getInitialListeners() |
Modifier and Type | Method and Description |
---|---|
Cluster |
DelegatingCluster.register(Host.StateListener listener) |
Cluster |
Cluster.register(Host.StateListener listener)
Registers the provided listener to be notified on hosts
up/down/added/removed events.
|
Cluster |
DelegatingCluster.unregister(Host.StateListener listener) |
Cluster |
Cluster.unregister(Host.StateListener listener)
Unregisters the provided listener from being notified on hosts events.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withInitialListeners(Collection<Host.StateListener> listeners)
Register the provided listeners in the newly created cluster.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ChainableLoadBalancingPolicy
A load balancing policy that wraps another policy.
|
interface |
CloseableLoadBalancingPolicy
A load balancing policy that wants to be notified at cluster shutdown.
|
interface |
LoadBalancingPolicy
The policy that decides which Cassandra hosts to contact for each new query.
|
Modifier and Type | Class and Description |
---|---|
class |
DCAwareRoundRobinPolicy
A data-center aware Round-robin load balancing policy.
|
class |
HostFilterPolicy
A load balancing policy wrapper that ensures that only hosts matching the predicate
will ever be returned.
|
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.
|
Copyright © 2012–2015. All rights reserved.