public interface QueryLaningStrategy
| Modifier and Type | Method and Description |
|---|---|
<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 |
default int |
computeLimitFromPercent(int totalLimit,
int value) |
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
|
it.unimi.dsi.fastutil.objects.Object2IntMap<String> getLaneLimits(int totalLimit)
totalLimit - <T> Optional<String> computeLane(QueryPlus<T> query, Set<SegmentServerSelector> segments)
QueryPlus and set of SegmentServerSelector, compute if a query belongs to a lane
This method must be thread safedefault int computeLimitFromPercent(int totalLimit,
int value)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.