Interface Counter


public interface Counter
A counter is a metric to track counts of events or running totals etc. The value of the counter can only increase.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    inc()
    Increment the counter by 1.
    void
    inc(long amount)
    Increment the counter by a specified amount.
  • Method Details

    • inc

      void inc()
      Increment the counter by 1.
    • inc

      void inc(long amount)
      Increment the counter by a specified amount.
      Parameters:
      amount - The amount to increment the counter by. Must be greater than or equal to 0.