public interface TimedMetric
Modifier and Type | Method and Description |
---|---|
void |
add(long micros)
Add a time event (usually in microseconds).
|
void |
add(long micros,
long beans)
Add a time event with the number of loaded beans or rows.
|
void |
addSinceNanos(long startNanos)
Add a time event given the start nanos.
|
void |
addSinceNanos(long startNanos,
long beans)
Add a time event given the start nanos and bean count.
|
TimedMetricStats |
collect(boolean reset)
Collect and return a snapshot of the metrics.
|
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.
|
void add(long micros)
void add(long micros, long beans)
void addSinceNanos(long startNanos)
void addSinceNanos(long startNanos, long beans)
boolean isEmpty()
void reset()
TimedMetricStats collect(boolean reset)
void visit(MetricVisitor visitor)
Copyright © 2019. All rights reserved.