mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
25 lines
456 B
Java
25 lines
456 B
Java
package io.ebeaninternal.metric;
|
|
|
|
import io.ebean.meta.MetricVisitor;
|
|
|
|
/**
|
|
* A map of timed metrics keyed by a string.
|
|
*/
|
|
public interface TimedMetricMap {
|
|
|
|
/**
|
|
* Add an execution for the given key.
|
|
*/
|
|
void add(String key, long exeMicros);
|
|
|
|
/**
|
|
* Add an execution for the given key including row/bean count.
|
|
*/
|
|
void add(String key, long exeMicros, int rows);
|
|
|
|
/**
|
|
* Visit the metric.
|
|
*/
|
|
void visit(MetricVisitor visitor);
|
|
}
|