package io.ebean.metric;

import io.ebean.meta.MetricVisitor;

A map of timed metrics keyed by a string.
/** * A map of timed metrics keyed by a string. */
public interface TimedMetricMap {
Add a time event given the start nanos.
/** * Add a time event given the start nanos. */
void addSinceNanos(String key, long startNanos);
Add a time event given the start nanos and beans.
/** * Add a time event given the start nanos and beans. */
void addSinceNanos(String key, long startNanos, int beans);
Add an execution for the given key.
/** * Add an execution for the given key. */
void add(String key, long exeMicros);
Add an execution for the given key including row/bean count.
/** * Add an execution for the given key including row/bean count. */
void add(String key, long exeMicros, int rows);
Visit the metric.
/** * Visit the metric. */
void visit(MetricVisitor visitor); }