public void applyConfig(CassandraHost cassandraHost) { cassandraHost.setMaxActive(maxActive); cassandraHost.setLifo(lifo); cassandraHost.setMaxWaitTimeWhenExhausted(maxWaitTimeWhenExhausted); cassandraHost.setMaxExhaustedTimeBeforeMarkingAsDown(maxExhaustedTimeBeforeMarkingAsDown); cassandraHost.setUseThriftFramedTransport(useThriftFramedTransport); cassandraHost.setMaxFrameSize(maxFrameSize); cassandraHost.setUseSocketKeepalive(useSocketKeepalive); cassandraHost.setMaxConnectTimeMillis(maxConnectTimeMillis); cassandraHost.setMaxLastSuccessTimeMillis(maxLastSuccessTimeMillis); // this is special as it can be passed in as a system property if (cassandraThriftSocketTimeout > 0) { cassandraHost.setCassandraThriftSocketTimeout(cassandraThriftSocketTimeout); } }
public void applyConfig(CassandraHost cassandraHost) { cassandraHost.setMaxActive(maxActive); cassandraHost.setLifo(lifo); cassandraHost.setMaxWaitTimeWhenExhausted(maxWaitTimeWhenExhausted); cassandraHost.setUseThriftFramedTransport(useThriftFramedTransport); cassandraHost.setUseSocketKeepalive(useSocketKeepalive); // this is special as it can be passed in as a system property if (cassandraThriftSocketTimeout > 0) { cassandraHost.setCassandraThriftSocketTimeout(cassandraThriftSocketTimeout); } }
public void applyConfig(CassandraHost cassandraHost) { cassandraHost.setMaxActive(maxActive); cassandraHost.setLifo(lifo); cassandraHost.setMaxWaitTimeWhenExhausted(maxWaitTimeWhenExhausted); cassandraHost.setMaxExhaustedTimeBeforeMarkingAsDown(maxExhaustedTimeBeforeMarkingAsDown); cassandraHost.setUseThriftFramedTransport(useThriftFramedTransport); cassandraHost.setMaxFrameSize(maxFrameSize); cassandraHost.setUseSocketKeepalive(useSocketKeepalive); cassandraHost.setMaxConnectTimeMillis(maxConnectTimeMillis); cassandraHost.setMaxLastSuccessTimeMillis(maxLastSuccessTimeMillis); // this is special as it can be passed in as a system property if (cassandraThriftSocketTimeout > 0) { cassandraHost.setCassandraThriftSocketTimeout(cassandraThriftSocketTimeout); } }