Class SearchRequestsAnalyticsStorage
- java.lang.Object
-
- com.atlassian.confluence.impl.threadlimiter.analyticsservice.SearchRequestsAnalyticsStorage
-
public class SearchRequestsAnalyticsStorage extends Object
Class responsible for storing information about search requests (for thread limiter analytics service).- Since:
- 9.3
-
-
Constructor Summary
Constructors Constructor Description SearchRequestsAnalyticsStorage()SearchRequestsAnalyticsStorage(Supplier<Long> timeSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.confluence.impl.threadlimiter.analyticsservice.AverageTimeInfoextractAverageDurationAndClear()Returns an average duration.LonggetNumberOfBusyThreads()
-
-
-
Method Detail
-
getNumberOfBusyThreads
public Long getNumberOfBusyThreads() throws InterruptedException
- Returns:
- a map where keys are macro names and the values are the numbers of threads
- Throws:
InterruptedException
-
extractAverageDurationAndClear
public com.atlassian.confluence.impl.threadlimiter.analyticsservice.AverageTimeInfo extractAverageDurationAndClear() throws InterruptedExceptionReturns an average duration. Note that the statistics about the duration is cleared out.- Throws:
InterruptedException
-
-