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 Summary
Constructors Constructor Description MacroViewAnalyticsStorage()MacroViewAnalyticsStorage(Supplier<Long> timeSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Long>extractAverageDurationsPerMacroAndClear()Returns a map where keys are macro names and the values is the durations of the macros.Map<String,Long>getNumberBusyOfThreadsPerMacro()
-
-
-
Method Detail
-
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
-
-