Package io.fluxcapacitor.common
Class ConsistentHashing
java.lang.Object
io.fluxcapacitor.common.ConsistentHashing
public class ConsistentHashing extends Object
-
Constructor Summary
Constructors Constructor Description ConsistentHashing() -
Method Summary
Modifier and Type Method Description static intcomputeSegment(String routingKey)static intcomputeSegment(String routingKey, int maxSegments)static intcomputeSegment(String routingKey, Function<String,Integer> hashFunction, int segments)
-
Constructor Details
-
ConsistentHashing
public ConsistentHashing()
-
-
Method Details
-
computeSegment
-
computeSegment
-
computeSegment
-