org.qi4j.api.metrics

## Interface MetricsCounterFactory

- All Superinterfaces:
    MetricsFactory
  All Known Implementing Classes:
    NullMetricsFactory.NullCounterFactory

      public interface MetricsCounterFactory
      extends MetricsFactory

  Create MetricsCounter instances.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MetricsCounter` | `createCounter(Class<?> origin, String name)` Create a MetricsCounter instance.

    - ### Methods inherited from interface org.qi4j.api.metrics.MetricsFactory

      `registered`

- - ### Method Detail

    - #### createCounter

          MetricsCounter createCounter(Class<?> origin,
                                     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 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.