Interface Counter

All Known Implementing Classes:
AggregatingCounter, NoopCounter

@Volatile public interface Counter
Represents a generic Counter interface for metrics.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    incrementBy(long number)
    Increments the counter by the given number.
  • Method Details

    • incrementBy

      void incrementBy(long number)
      Increments the counter by the given number.
      Parameters:
      number - the number to increment the counter by.