org.qi4j.spi.metrics

## Class MetricsProviderAdapter

- java.lang.Object
- - org.qi4j.spi.metrics.MetricsProviderAdapter

- All Implemented Interfaces:
    MetricsProvider
  Direct Known Subclasses:
    YammerMetricsMixin

      public class MetricsProviderAdapter
      extends Object
      implements MetricsProvider

  Adapter to ease MetricsProvider implementation.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MetricsProviderAdapter()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends MetricsFactory> T` | `createFactory(Class<T> factoryType)` Creates a new factory instance.
    `protected MetricsCounterFactory` | `createMetricsCounterFactory()`
    `protected MetricsGaugeFactory` | `createMetricsGaugeFactory()`
    `protected MetricsHealthCheckFactory` | `createMetricsHealthCheckFactory()`
    `protected MetricsHistogramFactory` | `createMetricsHistogramFactory()`
    `protected MetricsMeterFactory` | `createMetricsMeterFactory()`
    `protected MetricsTimerFactory` | `createMetricsTimerFactory()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MetricsProviderAdapter

          public MetricsProviderAdapter()

  - ### Method Detail

    - #### createFactory

          public <T extends MetricsFactory> T createFactory(Class<T> factoryType)

      Description copied from interface: `MetricsProvider`
      Creates a new factory instance. The instanctiation is done by providing a Metric type, which is one of
      - `MetricsCounter`
      - `MetricsGauge`
      - `MetricsHealthCheck`
      - `MetricsHistogram`
      - `MetricsMeter`
      - `MetricsTimer`
      Specified by:
        `createFactory` in interface `MetricsProvider`
      Type Parameters:
        `T` - The metric type requested.
      Parameters:
        `factoryType` - The class of the metric type needed.
      Returns:
        A factory instance

    - #### createMetricsTimerFactory

          protected MetricsTimerFactory createMetricsTimerFactory()

    - #### createMetricsMeterFactory

          protected MetricsMeterFactory createMetricsMeterFactory()

    - #### createMetricsHistogramFactory

          protected MetricsHistogramFactory createMetricsHistogramFactory()

    - #### createMetricsHealthCheckFactory

          protected MetricsHealthCheckFactory createMetricsHealthCheckFactory()

    - #### createMetricsGaugeFactory

          protected MetricsGaugeFactory createMetricsGaugeFactory()

    - #### createMetricsCounterFactory

          protected MetricsCounterFactory createMetricsCounterFactory()