|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.blocks.ReplCache.ConsistentHashFunction<K>
public static class ReplCache.ConsistentHashFunction<K>
Constructor Summary | |
---|---|
ReplCache.ConsistentHashFunction()
|
Method Summary | |
---|---|
java.util.List<Address> |
hash(K key,
short replication_count)
Function that, given a key and a replication count, returns replication_count number of different addresses of nodes. |
void |
installNodes(java.util.List<Address> new_nodes)
When the topology changes, this method will be called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplCache.ConsistentHashFunction()
Method Detail |
---|
public java.util.List<Address> hash(K key, short replication_count)
ReplCache.HashFunction
hash
in interface ReplCache.HashFunction<K>
public void installNodes(java.util.List<Address> new_nodes)
ReplCache.HashFunction
installNodes
in interface ReplCache.HashFunction<K>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |