Interface Meter.Id

Enclosing interface:
Meter

public static interface Meter.Id
Unique idenfier for a meter.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the meter name.
    Returns the tags which further identify the meter.
    default Map<String,String>
    Return the tags as a map.
    default <R> R
    unwrap(Class<? extends R> c)
    Unwraps the ID as the specified type.
  • Method Details

    • name

      String name()
      Returns the meter name.
      Returns:
      meter name
    • tags

      Iterable<Tag> tags()
      Returns the tags which further identify the meter.
      Returns:
      meter tags
    • tagsMap

      default Map<String,String> tagsMap()
      Return the tags as a map.
      Returns:
      map of tag keys to values
    • unwrap

      default <R> R unwrap(Class<? extends R> c)
      Unwraps the ID as the specified type.
      Type Parameters:
      R - type to cast to
      Parameters:
      c - Class to which to cast this ID
      Returns:
      the ID cast as the requested type