Interface Counter

  • All Superinterfaces:
    Metric

    public interface Counter
    extends Metric
    Incrementing and decrementing Counter metric.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Counter NONE
      Empty no-op Counter.
    • Field Detail

      • NONE

        static final Counter NONE
        Empty no-op Counter.
    • Method Detail

      • decrement

        void decrement()
        Decrement the Counter by one.
      • decrement

        void decrement​(long n)
        Decrement the Counter by n.
        Parameters:
        n - amount to decrement
      • increment

        void increment()
        Increment the Counter by one.
      • increment

        void increment​(long n)
        Increment the Counter by n.
        Parameters:
        n - amount to increment