public class RoundRobinBalancingPolicy extends Object implements LoadBalancingPolicy
HClientPool. If a pool is shutdown by another
thread in the midst of the selection process, we return the pool
at position 0| Constructor and Description |
|---|
RoundRobinBalancingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
HClientPool |
createConnection(HClientFactory clientFactory,
CassandraHost host,
CassandraClientMonitor monitor)
Creates a connection pool for
host. |
HClientPool |
getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts)
Retrieves a pool from the collection of
pools excluding excludeHosts. |
public HClientPool getPool(Collection<HClientPool> pools, Set<CassandraHost> excludeHosts)
LoadBalancingPolicypools excluding excludeHosts.getPool in interface LoadBalancingPolicypools - collection of all available poolsexcludeHosts - excluded poolspublic HClientPool createConnection(HClientFactory clientFactory, CassandraHost host, CassandraClientMonitor monitor)
LoadBalancingPolicyhost.createConnection in interface LoadBalancingPolicyclientFactory - an instance of HClientFactoryhost - an instance of CassandraHost representing the host this pool will representmonitor - the monitor exposing JMX methodsCopyright © 2014. All Rights Reserved.