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 and 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.

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021