public CassandraClientMonitor() { // Use a high concurrency map. //pool = new KeyedObjectPool<Endpoint, CassandraClient>(factory, config); counters = new Dictionary<ClientCounter, Counter>(); foreach (var counter in Enum.GetValues(typeof(ClientCounter))) counters[(ClientCounter)counter] = new Counter(); }
public FailoverPolicy(long retryCount, FailoverStrategy strategy) { this.retryCount = new Counter(retryCount); this.Strategy = strategy; }