Package 

Class DoubleGaugeMetric

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String name
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getName() the name of this metric
      Double get() Supplies the current value of this metric.
      final Unit set(Double newValue) Sets the value of this gauge to the given value.
      final Double setAndGet(Double newValue) Atomically sets the gauge to the given value, returning the updated value.
      final Double addAndGet(Double delta) Atomically adds the given value to this gauge, returning the updated value.
      final Double incAndGet() Atomically increments the value of this gauge by one, returning the updated value.
      final Double decAndGet() Atomically decrements the value of this gauge by one, returning the updated value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

         Double get()

        Supplies the current value of this metric.

      • set

         final Unit set(Double newValue)

        Sets the value of this gauge to the given value.

      • setAndGet

         final Double setAndGet(Double newValue)

        Atomically sets the gauge to the given value, returning the updated value.

      • addAndGet

         final Double addAndGet(Double delta)

        Atomically adds the given value to this gauge, returning the updated value.

      • incAndGet

         final Double incAndGet()

        Atomically increments the value of this gauge by one, returning the updated value.

      • decAndGet

         final Double decAndGet()

        Atomically decrements the value of this gauge by one, returning the updated value.