org.qi4j.api.metrics
Interface MetricsCounterFactory
- All Superinterfaces:
- MetricsFactory
- All Known Implementing Classes:
- NullMetricsFactory.NullCounterFactory
public interface MetricsCounterFactory
- extends MetricsFactory
Create MetricsCounter instances.
createCounter
MetricsCounter createCounter(java.lang.Class<?> origin,
java.lang.String name)
- Create a MetricsCounter 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