Class MacroViewAnalyticsStorage

java.lang.Object
com.atlassian.confluence.impl.threadlimiter.analyticsservice.MacroViewAnalyticsStorage

public class MacroViewAnalyticsStorage extends Object
Class responsible for storing information about macro views (for thread limiter analytics service).
Since:
9.3
  • Constructor Details

    • MacroViewAnalyticsStorage

      public MacroViewAnalyticsStorage()
    • MacroViewAnalyticsStorage

      public MacroViewAnalyticsStorage(Supplier<Long> timeSupplier)
  • Method Details

    • getNumberBusyOfThreadsPerMacro

      public Map<String,Long> getNumberBusyOfThreadsPerMacro() throws InterruptedException
      Returns:
      a map where keys are macro names and the values are the numbers of threads
      Throws:
      InterruptedException
    • extractAverageDurationsPerMacroAndClear

      public Map<String,Long> extractAverageDurationsPerMacroAndClear() throws InterruptedException
      Returns a map where keys are macro names and the values is the durations of the macros. Note that the statistics about durations is cleared out.
      Throws:
      InterruptedException