org.qi4j.api.metrics
Interface MetricsHistogramFactory

All Superinterfaces:
MetricsFactory
All Known Implementing Classes:
NullMetricsFactory.NullHistogramFactory

public interface MetricsHistogramFactory
extends MetricsFactory

Create MetricsHistogram instances.


Method Summary
 MetricsHistogram createHistogram(java.lang.Class<?> origin, java.lang.String name)
          Create a MetricsHistogram instance.
 
Methods inherited from interface org.qi4j.api.metrics.MetricsFactory
registered
 

Method Detail

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 metric
name - 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