Package org.apache.ignite.spi.metric

## Interface ObjectMetric<T>

- All Superinterfaces:
    `Metric`
  All Known Subinterfaces:
    `HistogramMetric`

      public interface ObjectMetric<T>
      extends Metric

  Interface for the metrics that holds typed value.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `default @Nullable String` | `getAsString()`
    `Class<T>` | `type()` |
    `T` | `value()` |

    - ### Methods inherited from interface org.apache.ignite.spi.metric.Metric

      `description, name, reset`

- - ### Method Detail

    - #### value

          T value()

      Returns:
        Value ot the metric.

    - #### type

          Class<T> type()

      Returns:
        Type of metric value.

    - #### getAsString

          @Nullable
          default @Nullable String getAsString()

      Specified by:
        `getAsString` in interface `Metric`
      Returns:
        String representation of metric value.