Class MutableGaugeFloat


public class MutableGaugeFloat extends MutableGauge
A mutable float gauge.
  • Method Details

    • value

      public float value()
    • incr

      public void incr()
      Description copied from class: MutableGauge
      Increment the value of the metric by 1
      Specified by:
      incr in class MutableGauge
    • decr

      public void decr()
      Description copied from class: MutableGauge
      Decrement the value of the metric by 1
      Specified by:
      decr in class MutableGauge
    • snapshot

      public void snapshot(MetricsRecordBuilder builder, boolean all)
      Description copied from class: MutableMetric
      Get a snapshot of the metric
      Specified by:
      snapshot in class MutableMetric
      Parameters:
      builder - the metrics record builder
      all - if true, snapshot unchanged metrics as well
    • set

      public void set(float value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the value of the metric