Class DefaultIndexQueueItemsService
- java.lang.Object
-
- com.atlassian.confluence.internal.diagnostics.ipd.index.items.DefaultIndexQueueItemsService
-
- All Implemented Interfaces:
IndexQueueItemsService
public class DefaultIndexQueueItemsService extends Object implements IndexQueueItemsService
Provides functionalities to retrieve information about the number of items added and processed in the index queue.- Since:
- 8.4.0
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexQueueItemsService(IndexQueueSizeService indexQueueSizeService, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceIpdMainRegistryConfiguration ipdMainRegistryConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetQueueItemsAdded(IndexQueueType indexQueueType)Returns the number of items added to the specified index queue.longgetQueueItemsProcessed(IndexQueueType indexQueueType)Returns the number of items processed in the specified index queue.voidinit()voidonEdgeIndexQueueFlushCompleteEvent(EdgeIndexQueueFlushCompleteEvent event)voidonIndexQueueFlushCompleteEvent(IndexQueueFlushCompleteEvent event)voidpreDestroy()
-
-
-
Constructor Detail
-
DefaultIndexQueueItemsService
public DefaultIndexQueueItemsService(IndexQueueSizeService indexQueueSizeService, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceIpdMainRegistryConfiguration ipdMainRegistryConfiguration)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
preDestroy
@PreDestroy public void preDestroy()
-
onIndexQueueFlushCompleteEvent
@EventListener public void onIndexQueueFlushCompleteEvent(IndexQueueFlushCompleteEvent event)
-
onEdgeIndexQueueFlushCompleteEvent
@EventListener public void onEdgeIndexQueueFlushCompleteEvent(EdgeIndexQueueFlushCompleteEvent event)
-
getQueueItemsAdded
public long getQueueItemsAdded(IndexQueueType indexQueueType)
Description copied from interface:IndexQueueItemsServiceReturns the number of items added to the specified index queue.- Specified by:
getQueueItemsAddedin interfaceIndexQueueItemsService- Parameters:
indexQueueType- the type of index queue- Returns:
- the number of items added to the index queue
-
getQueueItemsProcessed
public long getQueueItemsProcessed(IndexQueueType indexQueueType)
Description copied from interface:IndexQueueItemsServiceReturns the number of items processed in the specified index queue.- Specified by:
getQueueItemsProcessedin interfaceIndexQueueItemsService- Parameters:
indexQueueType- the type of index queue- Returns:
- the number of items processed in the index queue
-
-