Package com.netflix.astyanax.connectionpool.impl

Examples of com.netflix.astyanax.connectionpool.impl.FixedRetryBackoffStrategy


    ConnectionPoolConfigurationImpl poolConfig = new ConnectionPoolConfigurationImpl("MyConnectionPool")
        .setMaxConnsPerHost(20)
        .setInitConnsPerHost(2)
        .setSeeds(seeds2)
        .setConnectTimeout(10000)
        .setRetryBackoffStrategy(new FixedRetryBackoffStrategy(5000, 30000));

    Object username = properties.get(Bootstrap.CASSANDRA_USERNAME);
    Object password = properties.get(Bootstrap.CASSANDRA_PASSWORD);
    if (username != null && password != null) {
      poolConfig.setAuthenticationCredentials(new SimpleAuthenticationCredentials(""+username, ""+password));
View Full Code Here


                   
                .withConnectionPoolConfiguration(new ConnectionPoolConfigurationImpl(host + ":" + keyspace)
                        .setMaxConns(threads * 2)
                        .setSeeds(host)
                        .setPort(port)
                        .setRetryBackoffStrategy(new FixedRetryBackoffStrategy(1000, 1000)))
                .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
                .buildKeyspace(ThriftFamilyFactory.getInstance());
        context.start();
        return context;
    }
View Full Code Here

    ConnectionPoolConfigurationImpl poolConfig = new ConnectionPoolConfigurationImpl("MyConnectionPool")
        .setMaxConnsPerHost(20)
        .setInitConnsPerHost(2)
        .setSeeds(seeds2)
        .setConnectTimeout(10000)
        .setRetryBackoffStrategy(new FixedRetryBackoffStrategy(5000, 30000));

    Object port = properties.get(Bootstrap.CASSANDRA_THRIFT_PORT);
    if(port != null) {
      int portVal = 9160;
      if(port instanceof Integer)
View Full Code Here

      .withConnectionPoolConfiguration(new ConnectionPoolConfigurationImpl("MyConnectionPool")
          .setMaxConnsPerHost(20)
          .setInitConnsPerHost(2)
          .setSeeds(seeds2)
          .setConnectTimeout(10000)
    .setRetryBackoffStrategy(new FixedRetryBackoffStrategy(5000, 30000))
      )
      .withConnectionPoolMonitor(new CountingConnectionPoolMonitor());
   
   
  if(seeds2.contains(",")) {
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.connectionpool.impl.FixedRetryBackoffStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.