public class

HostConnectionPoolPartition

extends Object
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.HostConnectionPoolPartition<CL>

Summary

Public Constructors
HostConnectionPoolPartition(BigInteger id, LatencyScoreStrategy strategy)
Public Methods
synchronized boolean addPool(HostConnectionPool<CL> pool)
List<HostConnectionPool<CL>> getPools()
BigInteger id()
Token or shard identifying this partition.
boolean isSorted()
void refresh()
synchronized boolean removePool(HostConnectionPool<CL> pool)
synchronized boolean setPools(Collection<HostConnectionPool<CL>> pools)
Sets all pools for this partition.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HostConnectionPoolPartition (BigInteger id, LatencyScoreStrategy strategy)

Public Methods

public synchronized boolean addPool (HostConnectionPool<CL> pool)

public List<HostConnectionPool<CL>> getPools ()

public BigInteger id ()

Token or shard identifying this partition.

public boolean isSorted ()

public void refresh ()

public synchronized boolean removePool (HostConnectionPool<CL> pool)

public synchronized boolean setPools (Collection<HostConnectionPool<CL>> pools)

Sets all pools for this partition. Removes old partitions and adds new one.

public String toString ()