org.qi4j.spi.metrics

## Class NullMetricsFactory.NullGaugeFactory

- java.lang.Object
- - org.qi4j.spi.metrics.NullMetricsFactory.NullGaugeFactory

- All Implemented Interfaces:
    MetricsFactory, MetricsGaugeFactory
  Enclosing class:
    NullMetricsFactory

      public static class NullMetricsFactory.NullGaugeFactory
      extends Object
      implements MetricsGaugeFactory

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullMetricsFactory.NullGaugeFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterable<Metric>` | `registered()`
    `<T> MetricsGauge<T>` | `registerGauge(Class<?> origin, String name, MetricsGauge<T> gauge)` Register a MetricsGauge with the underlying Metrics system.

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

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

- - ### Constructor Detail

    - #### NullMetricsFactory.NullGaugeFactory

          public NullMetricsFactory.NullGaugeFactory()

  - ### Method Detail

    - #### registerGauge

          public <T> MetricsGauge<T> registerGauge(Class<?> origin,
                                          String name,
                                          MetricsGauge<T> gauge)

      Description copied from interface: `MetricsGaugeFactory`
      Register a MetricsGauge with the underlying Metrics system.
      Specified by:
        `registerGauge` in interface `MetricsGaugeFactory`
      Type Parameters:
        `T` - Any type holding the MetricsGauge's current value.
      Parameters:
        `origin` - The class where the MetricsGauge is created.
        `name` - A human readable, short name of the metric.
        `gauge` - The implementation of the MetricsGauge.
      Returns:
        The same MetricsGauge or the DefaultMetric.NULL MetricsGauge instance.

    - #### registered

          public Iterable<Metric> registered()

      Specified by:
        `registered` in interface `MetricsFactory`