Interface QueryLaningStrategy

All Known Implementing Classes:
HiLoQueryLaningStrategy, ManualQueryLaningStrategy, NoQueryLaningStrategy

public interface QueryLaningStrategy
  • Method Details

    • getLaneLimits

      it.unimi.dsi.fastutil.objects.Object2IntMap<String> getLaneLimits(int totalLimit)
      Provide a map of lane names to the limit on the number of concurrent queries for that lane
      Parameters:
      totalLimit -
    • computeLane

      <T> Optional<String> computeLane(QueryPlus<T> query, Set<SegmentServerSelector> segments)
      For a given QueryPlus and set of SegmentServerSelector, compute if a query belongs to a lane This method must be thread safe
    • computeLimitFromPercent

      default int computeLimitFromPercent(int totalLimit, int value)