Interface ThreadLimiterAnalyticsService
-
- All Known Implementing Classes:
NoopThreadLimiterAnalyticsService,ThreadLimiterAnalyticsServiceImpl
public interface ThreadLimiterAnalyticsServiceInterface for the thread limiter analytics service.- Since:
- 9.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogstatic booleanTHREAD_LIMITER_DISABLEDstatic io.atlassian.util.concurrent.LazyReference<ThreadLimiterAnalyticsService>threadLimiterAnalyticsServiceRef
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflushAnalytics()Is called when the analytics should be sent to the server (called by the scheduler).static ThreadLimiterAnalyticsServicegetInstance()LazyReference can return null value, so we have to check again here for nullslongonMacroStartRendering(MacroDefinition macroDefinition)Is called when the macro rendering startsvoidonMacroStopRendering(long renderingId)Is called when the macro rendering finishesvoidonSearchRequestProcessingFinish(long requestProcessingId)Is called when the search request processing finishes.longonSearchRequestProcessingStart()Is called when the search request processing starts.
-
-
-
Field Detail
-
THREAD_LIMITER_DISABLED
static final boolean THREAD_LIMITER_DISABLED
-
log
static final org.slf4j.Logger log
-
threadLimiterAnalyticsServiceRef
static final io.atlassian.util.concurrent.LazyReference<ThreadLimiterAnalyticsService> threadLimiterAnalyticsServiceRef
-
-
Method Detail
-
getInstance
static ThreadLimiterAnalyticsService getInstance()
LazyReference can return null value, so we have to check again here for nulls- Returns:
- an instance of ThreadLimiterAnalyticsService
-
onMacroStartRendering
long onMacroStartRendering(MacroDefinition macroDefinition)
Is called when the macro rendering starts- Parameters:
macroDefinition- macro definition- Returns:
- unique rendering id
-
onMacroStopRendering
void onMacroStopRendering(long renderingId)
Is called when the macro rendering finishes- Parameters:
renderingId- rendering id provided by onMacroStartRendering call.
-
onSearchRequestProcessingStart
long onSearchRequestProcessingStart()
Is called when the search request processing starts.- Returns:
- unique processing id
-
onSearchRequestProcessingFinish
void onSearchRequestProcessingFinish(long requestProcessingId)
Is called when the search request processing finishes.- Parameters:
requestProcessingId- id provided by onSearchRequestProcessingStart call.
-
flushAnalytics
void flushAnalytics()
Is called when the analytics should be sent to the server (called by the scheduler).
-
-