Package io.ebean.metric
Interface TimedMetric
public interface TimedMetric
Metric for timed events like transaction execution times.
-
Method Summary
Modifier and Type Method Description voidadd(long micros)Add a time event (usually in microseconds).voidaddBatchSince(long startNanos, int batch)Add a time event for a batch of beans.voidaddSinceNanos(long startNanos)Add a time event given the start nanos.TimedMetricStatscollect(boolean reset)Collect and return a snapshot of the metrics.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
Add a time event (usually in microseconds). -
addBatchSince
Add a time event for a batch of beans. -
addSinceNanos
Add a time event given the start nanos. -
isEmpty
boolean isEmpty()Return true if there are no metrics collected since the last collection. -
reset
void reset()Reset the statistics. -
collect
Collect and return a snapshot of the metrics. -
visit
Visit non empty metrics.
-