Interface GaugeLong

  • All Superinterfaces:
    Metric

    public interface GaugeLong
    extends Metric
    Setting GaugeLong metric.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static GaugeLong NONE
      Empty no-op gauge.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long decrement()
      Decrement the gauge value atomically and return the new value
      long increment()
      Increment the gauge value atomically and return the new value
      void set​(long value)
      Set the gauge value
      • Methods inherited from interface com.lightbend.cinnamon.metric.Metric

        destroy
    • Field Detail

      • NONE

        static final GaugeLong NONE
        Empty no-op gauge.
    • Method Detail

      • set

        void set​(long value)
        Set the gauge value
        Parameters:
        value - to set the gauge to.
      • increment

        long increment()
        Increment the gauge value atomically and return the new value
        Returns:
        the new value for this gauge
      • decrement

        long decrement()
        Decrement the gauge value atomically and return the new value
        Returns:
        the new value for this gauge