Class InMemoryCounter

java.lang.Object
com.atlassian.crowd.analytics.persistence.InMemoryCounter

@Named public class InMemoryCounter extends Object
  • Constructor Details

    • InMemoryCounter

      public InMemoryCounter()
  • Method Details

    • getCountAndReset

      public long getCountAndReset(InMemoryCounter.CounterKey counterKey)
      Returns count for the counter of the given counter key, and resets it to 0.
    • increment

      public void increment(InMemoryCounter.CounterKey counterKey)
      Increments the counter of a given counter key.