public final class ConsistentHashingBs<T> extends Object
| 构造器和说明 |
|---|
ConsistentHashingBs() |
| 限定符和类型 | 方法和说明 |
|---|---|
IConsistentHashing<T> |
build()
构建结果
|
ConsistentHashingBs<T> |
hashCode(com.github.houbb.hash.api.IHashCode hashCode)
设置 hash 策略
暂时不开放
|
static <T> ConsistentHashingBs<T> |
newInstance()
新建对象实例
|
ConsistentHashingBs<T> |
nodes(Collection<T> nodes)
设置初始化节点
|
ConsistentHashingBs<T> |
virtualNum(int virtualNum)
设置虚拟节点数量
|
public static <T> ConsistentHashingBs<T> newInstance()
T - 泛型public ConsistentHashingBs<T> virtualNum(int virtualNum)
virtualNum - 虚拟节点public ConsistentHashingBs<T> hashCode(com.github.houbb.hash.api.IHashCode hashCode)
hashCode - hashCode 策略public ConsistentHashingBs<T> nodes(Collection<T> nodes)
nodes - 节点public IConsistentHashing<T> build()
Copyright © 2021. All rights reserved.