public interface CountMetric
Metric for timed events like transaction execution times.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long micros) Add to the counter.longget(boolean reset) Return the count value.voidIncrement 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 Details
-
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
Visit non empty metrics.
-