T - the type of node to be partitionedpublic interface Partition<T extends Node>
HashRing.
Partitions are created for each Node that added to the ring,
with assigned slots (ring positions) based on getPartitionKey().| Modifier and Type | Method and Description |
|---|---|
T |
getNode() |
java.lang.String |
getPartitionKey()
Return the partition key, used for slot calculation.
|
long |
getSlot() |
void |
setSlot(long slot) |
T getNode()
long getSlot()
void setSlot(long slot)
java.lang.String getPartitionKey()