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.

Sharding

  • Method Details

    • getEffectiveNodes

      @NonNull Collection<String> getEffectiveNodes()
      Gets all effective node names.
      Returns:
      collection of effective node names