mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
27 lines
454 B
Java
27 lines
454 B
Java
package io.ebean.metric;
|
|
|
|
import io.ebean.meta.MetaQueryMetric;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Object used to collect query plan metrics.
|
|
*/
|
|
public interface QueryPlanCollector {
|
|
|
|
/**
|
|
* Return true if the statistics should be reset.
|
|
*/
|
|
boolean isReset();
|
|
|
|
/**
|
|
* Add the query plan statistic.
|
|
*/
|
|
void add(MetaQueryMetric stats);
|
|
|
|
/**
|
|
* Return all the collected query plan statistics.
|
|
*/
|
|
List<MetaQueryMetric> complete();
|
|
}
|