Class DefaultIndexQueueItemsService
java.lang.Object
com.atlassian.confluence.internal.diagnostics.ipd.index.items.DefaultIndexQueueItemsService
- All Implemented Interfaces:
IndexQueueItemsService
Provides functionalities to retrieve information about the number of items added and processed in the index queue.
- Since:
- 8.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexQueueItemsService
(IndexQueueSizeService indexQueueSizeService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.diagnostics.ipd.api.CachedIpdState ipdState) -
Method Summary
Modifier and TypeMethodDescriptionlong
getQueueItemsAdded
(IndexQueueType indexQueueType) Returns the number of items added to the specified index queue.long
getQueueItemsProcessed
(IndexQueueType indexQueueType) Returns the number of items processed in the specified index queue.void
init()
void
void
void
-
Constructor Details
-
DefaultIndexQueueItemsService
public DefaultIndexQueueItemsService(IndexQueueSizeService indexQueueSizeService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.diagnostics.ipd.api.CachedIpdState ipdState)
-
-
Method Details
-
init
@PostConstruct public void init() -
preDestroy
@PreDestroy public void preDestroy() -
onIndexQueueFlushCompleteEvent
-
onEdgeIndexQueueFlushCompleteEvent
@EventListener public void onEdgeIndexQueueFlushCompleteEvent(EdgeIndexQueueFlushCompleteEvent event) -
getQueueItemsAdded
Description copied from interface:IndexQueueItemsService
Returns the number of items added to the specified index queue.- Specified by:
getQueueItemsAdded
in interfaceIndexQueueItemsService
- Parameters:
indexQueueType
- the type of index queue- Returns:
- the number of items added to the index queue
-
getQueueItemsProcessed
Description copied from interface:IndexQueueItemsService
Returns the number of items processed in the specified index queue.- Specified by:
getQueueItemsProcessed
in interfaceIndexQueueItemsService
- Parameters:
indexQueueType
- the type of index queue- Returns:
- the number of items processed in the index queue
-