Class WeightedServers
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.cassandra.pool.WeightedServers
-
public final class WeightedServers extends Object
Weights hosts inversely by the number of active connections.getRandomServer()
should then be used to pick a random host
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WeightedServers
create(Map<CassandraServer,CassandraClientPoolingContainer> pools)
CassandraServer
getRandomServer()
-
-
-
Method Detail
-
create
public static WeightedServers create(Map<CassandraServer,CassandraClientPoolingContainer> pools)
-
getRandomServer
public CassandraServer getRandomServer()
-
-