public class MaxJDBCConnectionCheckConstraint extends Object implements QueryLaunchingConstraint
Constructor and Description |
---|
MaxJDBCConnectionCheckConstraint(int poolMaxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsLaunchOf(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries)
Returns whether this constraint allows candidate query to be launched.
|
public MaxJDBCConnectionCheckConstraint(int poolMaxSize)
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.