Interface Counter


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

      • 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.