com.netflix.astyanax.connectionpool.impl
Class HostConnectionPoolPartition<CL>

java.lang.Object
  extended by com.netflix.astyanax.connectionpool.impl.HostConnectionPoolPartition<CL>

public class HostConnectionPoolPartition<CL>
extends Object


Constructor Summary
HostConnectionPoolPartition(BigInteger id, LatencyScoreStrategy strategy)
           
 
Method Summary
 boolean addPool(HostConnectionPool<CL> pool)
           
 List<HostConnectionPool<CL>> getPools()
           
 BigInteger id()
          Token or shard identifying this partition.
 boolean isSorted()
           
 void refresh()
           
 boolean removePool(HostConnectionPool<CL> pool)
           
 boolean setPools(Collection<HostConnectionPool<CL>> pools)
          Sets all pools for this partition.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostConnectionPoolPartition

public HostConnectionPoolPartition(BigInteger id,
                                   LatencyScoreStrategy strategy)
Method Detail

setPools

public boolean setPools(Collection<HostConnectionPool<CL>> pools)
Sets all pools for this partition. Removes old partitions and adds new one.

Parameters:
pools -

addPool

public boolean addPool(HostConnectionPool<CL> pool)

removePool

public boolean removePool(HostConnectionPool<CL> pool)

id

public BigInteger id()
Token or shard identifying this partition.

Returns:

getPools

public List<HostConnectionPool<CL>> getPools()

isSorted

public boolean isSorted()

refresh

public void refresh()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.