All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.metric.TimedMetricMap Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy