org.infinispan.distribution
Class DefaultConsistentHash

java.lang.Object
  extended by org.infinispan.distribution.DefaultConsistentHash
All Implemented Interfaces:
ConsistentHash

public class DefaultConsistentHash
extends Object
implements ConsistentHash


Constructor Summary
DefaultConsistentHash()
           
 
Method Summary
 List<Address> locate(Object key, int replicationCount)
           
 Map<Object,List<Address>> locateAll(Collection<Object> keys, int replCount)
           
 void setCaches(Collection<Address> caches)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConsistentHash

public DefaultConsistentHash()
Method Detail

setCaches

public void setCaches(Collection<Address> caches)
Specified by:
setCaches in interface ConsistentHash

locate

public List<Address> locate(Object key,
                            int replicationCount)
Specified by:
locate in interface ConsistentHash

locateAll

public Map<Object,List<Address>> locateAll(Collection<Object> keys,
                                           int replCount)
Specified by:
locateAll in interface ConsistentHash


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.