Package me.ahoo.cosid.sharding
Interface Sharding<T extends Comparable<?>>
- All Superinterfaces:
PreciseSharding<T>,RangeSharding<T>
- All Known Implementing Classes:
CachedSharding,IntervalTimeline,ModCycle
@ThreadSafe
public interface Sharding<T extends Comparable<?>>
extends PreciseSharding<T>, RangeSharding<T>
Sharding algorithm interface for distributing data across multiple nodes.
Combines both precise sharding (single key) and range sharding (key range) capabilities to determine which node(s) should handle a given ID or ID range.

-
Method Summary
Methods inherited from interface me.ahoo.cosid.sharding.PreciseSharding
shardingMethods inherited from interface me.ahoo.cosid.sharding.RangeSharding
sharding
-
Method Details
-
getEffectiveNodes
@NonNull Collection<String> getEffectiveNodes()Gets all effective node names.- Returns:
- collection of effective node names
-