org.qi4j.api.metrics
Interface MetricsHistogramFactory
- All Superinterfaces:
- MetricsFactory
- All Known Implementing Classes:
- NullMetricsFactory.NullHistogramFactory
public interface MetricsHistogramFactory
- extends MetricsFactory
Create MetricsHistogram instances.
createHistogram
MetricsHistogram createHistogram(java.lang.Class<?> origin,
java.lang.String name)
- Create a MetricsHistogram instance.
If the same arguments are given twice, the same instance must be returned.
- Parameters:
origin
- The class that instantiate the metricname
- A human readable, short name of the metric.
- Returns:
- A Metric instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.
- See Also:
DefaultMetric