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 | Class and Description |
---|---|
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 HostFilterPolicy |
HostFilterPolicy.fromDCBlackList(LoadBalancingPolicy childPolicy,
Iterable<String> dcs)
Create a new policy that wraps the provided child policy but only "forbids" hosts
whose DC belongs to the provided list.
|
static HostFilterPolicy |
HostFilterPolicy.fromDCWhiteList(LoadBalancingPolicy childPolicy,
Iterable<String> dcs)
Create a new policy that wraps the provided child policy but only "allows" hosts
whose DC belongs to the provided list.
|
Copyright © 2012–2018. All rights reserved.