loadBalancingPolicy = new RoundRobinBalancingPolicy();
}
Connection getConnection(ConnectionPool pool)
{
ConnectionPool connectionPool = pool;
boolean success = false;
while (!success)
{
try
{
success = true;
Cassandra.Client client = connectionPool.getConnection();
if (logger.isDebugEnabled())
{
logger.debug("Returning connection of {} :{} .", pool.getPoolProperties().getHost(), pool
.getPoolProperties().getPort());