public class MaxConcurrentDriverQueriesConstraint extends Object implements QueryLaunchingConstraint
| Constructor and Description |
|---|
MaxConcurrentDriverQueriesConstraint(int maxConcurrentQueries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
Returns whether this constraint allows candidate query to be launched.
|
public MaxConcurrentDriverQueriesConstraint(int maxConcurrentQueries)
public boolean allowsLaunchOf(QueryContext candidateQuery, EstimatedImmutableQueryCollection launchedQueries)
QueryLaunchingConstraintallowsLaunchOf in interface QueryLaunchingConstraintcandidateQuery - The query which is the next candidate to be launched.launchedQueries - Current launched queriesCopyright © 2014–2015 Apache Software Foundation. All rights reserved.