public class QueryStats extends Object
Constructor and Description |
---|
QueryStats(String query) |
Modifier and Type | Method and Description |
---|---|
void |
addQueryTime(long time)
Whenever this query was executed, add execution time with this method.
|
long |
getAvg() |
long |
getCount() |
long |
getMax() |
long |
getMin() |
String |
getQuery() |
long |
getTotal() |
String |
toString() |
public QueryStats(String query)
public void addQueryTime(long time)
time
- time in milliseconds it took to execute the querypublic long getAvg()
public long getMin()
public long getMax()
public long getCount()
public long getTotal()
public String getQuery()
Copyright © 2020 JavaLite. All rights reserved.