mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
38 lines
701 B
Java
38 lines
701 B
Java
package io.ebean.metric;
|
|
|
|
import io.ebean.ProfileLocation;
|
|
|
|
/**
|
|
* 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(String name);
|
|
|
|
/**
|
|
* Create a Timed metric.
|
|
*/
|
|
TimedMetric createTimedMetric(String name);
|
|
|
|
/**
|
|
* Create a counter metric.
|
|
*/
|
|
CountMetric createCountMetric(String name);
|
|
|
|
/**
|
|
* Create a Timed metric.
|
|
*/
|
|
QueryPlanMetric createQueryPlanMetric(Class<?> type, String label, ProfileLocation profileLocation, String sql);
|
|
|
|
}
|