public static class ReplCache.ConsistentHashFunction<K> extends Object implements ReplCache.HashFunction<K>
Constructor and Description |
---|
ReplCache.ConsistentHashFunction() |
Modifier and Type | Method and Description |
---|---|
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(List<Address> new_nodes)
When the topology changes, this method will be called.
|
public List<Address> hash(K key, short replication_count)
ReplCache.HashFunction
hash
in interface ReplCache.HashFunction<K>
public void installNodes(List<Address> new_nodes)
ReplCache.HashFunction
installNodes
in interface ReplCache.HashFunction<K>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.