/**
* @param args
*/
public static void main(String[] args) {
ConnectionPoolConfigurationImpl config;
config = new ConnectionPoolConfigurationImpl(TestConstants.CLUSTER_NAME
+ "_" + TestConstants.KEYSPACE_NAME);
// config.setMaxConns(100);
config.setMaxFailoverCount(-1);
config.setMaxTimeoutWhenExhausted(1000);
config.setMaxConnsPerHost(25);
config.setInitConnsPerHost(0);
config.setTimeoutWindow(5000);
config.setMaxTimeoutCount(10);
config.setRetrySuspendWindow(5000);
config.setLatencyScoreStrategy(new EmaLatencyScoreStrategyImpl(1000, 0, 20));
// config.setRetryBackoffStrategy(new
// ExponentialRetryBackoffStrategy(20, 1000, 2000));
final ConnectionPoolMonitor monitor = new CountingConnectionPoolMonitor();
TestConnectionFactory factory = new TestConnectionFactory(config, monitor);