consistent-hash:一致性哈希工具类 Implementing Consistent Hashing in Kotlin

时间:2024-05-31 18:44:50
【文件属性】:

文件名称:consistent-hash:一致性哈希工具类 Implementing Consistent Hashing in Kotlin

文件大小:754KB

文件格式:ZIP

更新时间:2024-05-31 18:44:50

consistent-hashing Kotlin

一致性哈希 consistent-hash Implementing Consistent Hashing in Kotlin Java Kotlin实现的一致性哈希工具 简单示例 val a = HostPortPhysicalNode("A", "192.169.1.1", 8080) val b = HostPortPhysicalNode("B", "192.169.1.2", 8080) val c = HostPortPhysicalNode("C", "192.168.1.13", 8888) val consistentHash = ConsistentHashHelper.create() .withNodes(listOf(a, b)) .build() consistantHash.getNo


【文件预览】:
consistent-hash-master
----.gitignore(323B)
----settings.gradle(37B)
----build.gradle(1KB)
----src()
--------main()
--------test()
----gradlew(5KB)
----LICENSE(11KB)
----README.md(2KB)
----gradlew.bat(2KB)
----gradle()
--------wrapper()
----docs()
--------consistent_hashing()
--------consistent_hashing.key(384KB)

网友评论