Package io.ebean.metric
Interface CountMetric
-
public interface CountMetric
Metric for timed events like transaction execution times.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(long micros)Add to the counter.longget(boolean reset)Return the count value.voidincrement()Increment the counter by 1.booleanisEmpty()Return true if there are no metrics collected since the last collection.voidreset()Reset the statistics.voidvisit(MetricVisitor visitor)Visit non empty metrics.
-
-
-
Method Detail
-
add
void add(long micros)
Add to the counter.
-
increment
void increment()
Increment the counter by 1.
-
get
long get(boolean reset)
Return the count value.
-
isEmpty
boolean isEmpty()
Return true if there are no metrics collected since the last collection.
-
reset
void reset()
Reset the statistics.
-
visit
void visit(MetricVisitor visitor)
Visit non empty metrics.
-
-