Interface GCounter

    • Method Detail

      • increment

        GCounter increment()
        Increment the counter and get the result.
        Returns:
        this instance so methods can be chained together; never null
      • incrementAndGet

        long incrementAndGet()
        Increment the counter and get the result.
        Returns:
        the current result after incrementing
      • getAndIncrement

        long getAndIncrement()
        Increment the counter and get the result.
        Returns:
        the current result before incrementing
      • merge

        GCounter merge​(Count other)
        Merge the supplied counter into this counter.
        Parameters:
        other - the other counter to merge into this one; may be null
        Returns:
        this counter so that methods can be chained