@ThreadSafe public class ConsistentHashing<T> extends Object implements IConsistentHashing<T>
| 构造器和说明 |
|---|
ConsistentHashing(int virtualNum,
com.github.houbb.hash.api.IHashCode hashCode) |
public ConsistentHashing(int virtualNum,
com.github.houbb.hash.api.IHashCode hashCode)
public T get(String key)
get 在接口中 IConsistentHashing<T>key - keypublic IConsistentHashing add(T node)
IConsistentHashingadd 在接口中 IConsistentHashing<T>node - 节点public IConsistentHashing remove(T node)
IConsistentHashingremove 在接口中 IConsistentHashing<T>node - 节点public Map<Integer,T> nodeMap()
IConsistentHashingnodeMap 在接口中 IConsistentHashing<T>Copyright © 2021. All rights reserved.