public interface LoadBalancingPolicy extends Serializable
| 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. |
HClientPool getPool(Collection<HClientPool> pools, Set<CassandraHost> excludeHosts)
pools excluding excludeHosts.pools - collection of all available poolsexcludeHosts - excluded poolsHClientPool createConnection(HClientFactory clientFactory, CassandraHost host, CassandraClientMonitor monitor)
host.clientFactory - an instance of HClientFactoryhost - an instance of CassandraHost representing the host this pool will representmonitor - the monitor exposing JMX methodsCopyright © 2014. All Rights Reserved.