mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor for query plan capture with initial threshold micros
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package io.ebeaninternal.server.query;
|
||||
|
||||
import io.ebeaninternal.api.QueryPlanManager;
|
||||
import io.ebeaninternal.api.SpiQueryBindCapture;
|
||||
import io.ebeaninternal.api.SpiQueryPlan;
|
||||
|
||||
public class CQueryPlanManager implements QueryPlanManager {
|
||||
|
||||
private final long threshold;
|
||||
|
||||
private final QueryPlanLogger planLogger;
|
||||
|
||||
public CQueryPlanManager(long threshold, QueryPlanLogger planLogger) {
|
||||
this.threshold = threshold;
|
||||
this.planLogger = planLogger;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpiQueryBindCapture createBindCapture(SpiQueryPlan queryPlan) {
|
||||
return new CQueryBindCapture(queryPlan, planLogger, threshold);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user