public class QueryPlanRequest extends Object
Constructor and Description |
---|
QueryPlanRequest() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Return the connection to use to capture the query plans.
|
List<MetaQueryPlan> |
getPlans() |
long |
getSince()
Return the epoch time after which the query plan was capture (to be included).
|
boolean |
includeLabel(String label)
Return true if the label should be included in the query plan capture.
|
boolean |
includeType(Class<?> beanType)
Return true if the bean type should be included in the query plan capture.
|
boolean |
isStore()
Return true if the captured query plan is stored.
|
void |
process(MetaQueryPlan plan)
Process consume the query plan.
|
void |
setConnection(Connection connection)
Set the connection to use to capture the query plans.
|
void |
setSince(long since)
Set the epoch time after which the query plan was captured.
|
void |
setStore(boolean store)
Set to true to store the captured query plan.
|
public QueryPlanRequest()
public List<MetaQueryPlan> getPlans()
public Connection getConnection()
public void setConnection(Connection connection)
public boolean isStore()
public void setStore(boolean store)
public long getSince()
public void setSince(long since)
This is used to only capture plans that have changed since a given time (like the time of last capture).
since
- The time after which the query plan was captured to be includedpublic void process(MetaQueryPlan plan)
public boolean includeType(Class<?> beanType)
public boolean includeLabel(String label)
Copyright © 2019. All rights reserved.