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 void
add(long micros)
Add to the counter.long
get(boolean reset)
Return the count value.void
increment()
Increment the counter by 1.boolean
isEmpty()
Return true if there are no metrics collected since the last collection.void
reset()
Reset the statistics.void
visit(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.
-
-