Uses of Class
cloud.opencode.base.hash.consistent.ConsistentHashBuilder
Packages that use ConsistentHashBuilder
-
Uses of ConsistentHashBuilder in cloud.opencode.base.hash
Methods in cloud.opencode.base.hash that return ConsistentHashBuilderModifier and TypeMethodDescriptionstatic <T> ConsistentHashBuilder<T> OpenHash.consistentHash()Creates a consistent hash ring builder 创建一致性哈希环构建器 -
Uses of ConsistentHashBuilder in cloud.opencode.base.hash.consistent
Methods in cloud.opencode.base.hash.consistent that return ConsistentHashBuilderModifier and TypeMethodDescriptionAdds a node with default weight 添加默认权重的节点Adds a weighted node 添加带权重的节点ConsistentHashBuilder.addNodes(Collection<HashNode<T>> nodes) Adds multiple nodes 添加多个节点static <T> ConsistentHashBuilder<T> ConsistentHash.builder()Creates a builder 创建构建器ConsistentHashBuilder.concurrent(boolean concurrent) Sets whether to use concurrent mode 设置是否使用并发模式ConsistentHashBuilder.hashFunction(HashFunction hashFunction) Sets the hash function 设置哈希函数ConsistentHashBuilder.virtualNodeCount(int count) Sets the virtual node count per physical node 设置每个物理节点的虚拟节点数