createMeter
public MetricsMeter createMeter(Class<?> origin,
String name,
String eventType,
TimeUnit rate)
Create a MetricsMeter instance.
If the same arguments are given twice, the same instance must be returned.
- Specified by:
createMeter in interface MetricsMeterFactory
- Parameters:
origin - The class that instantiate the metricname - 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.