org.qi4j.api.metrics
Interface MetricsMeterFactory

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

public interface MetricsMeterFactory
extends MetricsFactory

Create MetricsMeter instances.


Method Summary
 MetricsMeter createMeter(java.lang.Class<?> origin, java.lang.String name, java.lang.String eventType, java.util.concurrent.TimeUnit rate)
          Create a MetricsMeter instance.
 
Methods inherited from interface org.qi4j.api.metrics.MetricsFactory
registered
 

Method Detail

createMeter

MetricsMeter createMeter(java.lang.Class<?> origin,
                         java.lang.String name,
                         java.lang.String eventType,
                         java.util.concurrent.TimeUnit rate)
Create a MetricsMeter 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.
eventType - the plural name of the event the meter is measuring (e.g., "requests")
rate - the scale unit for this timer's rate metrics
Returns:
A Metric instance to be used, OR org.qi4j.spi.metrics.DefaultMetric.NULL if not supported.