Package me.ahoo.cosid.sharding
Class ModCycle<T extends Number & Comparable<T>>
java.lang.Object
me.ahoo.cosid.sharding.ModCycle<T>
- All Implemented Interfaces:
PreciseSharding<T>
,RangeSharding<T>
,Sharding<T>
ModCycle.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
ModCycle
-
-
Method Details
-
getDivisor
public int getDivisor() -
sharding
- Specified by:
sharding
in interfacePreciseSharding<T extends Number & Comparable<T>>
-
sharding
- Specified by:
sharding
in interfaceRangeSharding<T extends Number & Comparable<T>>
-
getEffectiveNodes
- Specified by:
getEffectiveNodes
in interfaceSharding<T extends Number & Comparable<T>>
-