Interface PreciseSharding<T extends Comparable<?>>

Type Parameters:
T - the type of comparable sharding value
All Known Subinterfaces:
Sharding<T>
All Known Implementing Classes:
CachedSharding, IntervalTimeline, ModCycle

public interface PreciseSharding<T extends Comparable<?>>
Single-value sharding algorithm interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    sharding(T shardingValue)
    Gets the node for a single sharding value.
  • Method Details

    • sharding

      @NonNull String sharding(T shardingValue)
      Gets the node for a single sharding value.
      Parameters:
      shardingValue - the sharding value
      Returns:
      the node name