Class EventStats

java.lang.Object
com.atlassian.bamboo.event.spi.EventStats

@ThreadSafe public class EventStats extends Object
Lockless class for tracking statistics from the events system
Since:
4.0
  • Constructor Details

    • EventStats

      public EventStats()
  • Method Details

    • dispatch

      public void dispatch(com.atlassian.event.spi.ListenerInvoker invoker, Object event)
    • getEventCountsMap

      public Map<String,Long> getEventCountsMap()
      Returns a sorted copy of the event counts map. The map's keys represent event names, and the values indicate how many times each event has been dispatched. The returned map is sorted in descending order based on the event counts.
      Returns:
      A LinkedHashMap containing event names as keys and their dispatch counts as values, sorted by count in descending order.