public static class ReplCache.ConsistentHashFunction<K> extends java.lang.Object implements ReplCache.HashFunction<K>
| 构造器和说明 |
|---|
ReplCache.ConsistentHashFunction() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public java.util.List<Address> hash(K key, short replication_count)
ReplCache.HashFunctionhash 在接口中 ReplCache.HashFunction<K>public void installNodes(java.util.List<Address> new_nodes)
ReplCache.HashFunctioninstallNodes 在接口中 ReplCache.HashFunction<K>