Interface Counter


@Internal public interface Counter
Represents an atomic counter that can be increased in value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Increase the counter by one.
    increase(long amount)
    Increase the counter by the specified amount.
  • Method Details

    • increase

      Counter increase()
      Increase the counter by one.
      Returns:
      the counter.
    • increase

      Counter increase(long amount)
      Increase the counter by the specified amount.
      Parameters:
      amount - the amount to increase the counter by
      Returns:
      the counter.