public class MaxConcurrentDriverQueriesConstraint extends Object implements QueryLaunchingConstraint
Constructor and Description |
---|
MaxConcurrentDriverQueriesConstraint(int maxConcurrentQueries,
Map<String,Integer> maxConcurrentQueriesPerQueue,
Map<Priority,Integer> maxConcurrentQueriesPerPriority,
Integer defaultMaxConcurrentQueriesPerQueueLimit,
int maxConcurrentLaunches) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
Returns whether this constraint allows candidate query to be launched.
|
@ConstructorProperties(value={"maxConcurrentQueries","maxConcurrentQueriesPerQueue","maxConcurrentQueriesPerPriority","defaultMaxConcurrentQueriesPerQueueLimit","maxConcurrentLaunches"}) @Generated(value="lombok") public MaxConcurrentDriverQueriesConstraint(int maxConcurrentQueries, Map<String,Integer> maxConcurrentQueriesPerQueue, Map<Priority,Integer> maxConcurrentQueriesPerPriority, Integer defaultMaxConcurrentQueriesPerQueueLimit, int maxConcurrentLaunches)
public boolean allowsLaunchOf(QueryContext candidateQuery, EstimatedImmutableQueryCollection launchedQueries)
QueryLaunchingConstraint
allowsLaunchOf
in interface QueryLaunchingConstraint
candidateQuery
- The query which is the next candidate to be launched.launchedQueries
- Current launched queriesCopyright © 2014–2016 Apache Software Foundation. All rights reserved.