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

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

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.metric;

import io.ebean.meta.MetricType;

/**
 * Factory to create timed metric counters.
 */
public interface MetricFactory {

  /**
   * Return the factory instance.
   */
  static MetricFactory get() {
    return MetricServiceProvider.get();
  }

  /**
   * Create a timed metric group.
   */
  TimedMetricMap createTimedMetricMap(MetricType metricType, String name);

  /**
   * Create a Timed metric.
   */
  TimedMetric createTimedMetric(MetricType metricType, String name);

  /**
   * Create a Timed metric.
   */
  QueryPlanMetric createQueryPlanMetric(MetricType metricType, Class type, String label, String sql);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy