mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1875 - Refactor simplify MetaTimedMetric removing unrequired getStartTime() and getBeanCount()
This commit is contained in:
@@ -36,8 +36,8 @@ public final class CQueryPlanStats {
|
||||
/**
|
||||
* Add a query execution to the statistics.
|
||||
*/
|
||||
public void add(long loadedBeanCount, long timeMicros) {
|
||||
timedMetric.add(timeMicros, loadedBeanCount);
|
||||
public void add(long timeMicros) {
|
||||
timedMetric.add(timeMicros);
|
||||
// not safe but should be atomic
|
||||
lastQueryTime = System.currentTimeMillis();
|
||||
}
|
||||
@@ -112,11 +112,6 @@ public final class CQueryPlanStats {
|
||||
return queryPlan.getLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getBeanCount() {
|
||||
return metrics.getBeanCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getCount() {
|
||||
return metrics.getCount();
|
||||
@@ -137,11 +132,6 @@ public final class CQueryPlanStats {
|
||||
return metrics.getMean();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getStartTime() {
|
||||
return metrics.getStartTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHash() {
|
||||
return queryPlan.getHash();
|
||||
|
||||
Reference in New Issue
Block a user