Interface IncrementalIndexManager
-
- All Known Implementing Classes:
LuceneIncrementalIndexManager
@LuceneIndependent @Internal public interface IncrementalIndexManager
This manager is responsible for manipulating single Lucene directory and single index queue. All operations which are local to this index and don't depend on other indexes should live here.- Since:
- 7.9.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddTask(ConfluenceIndexTask task)Adds a new task to the index queuedefault booleanflushQueue()Flushes the index queue, processing all of the tasks.booleanflushQueue(IndexManager.IndexQueueFlushMode flushMode)Flushes the index queue, processing a batch of the tasks@Nullable FlushStatisticsgetLastNonEmptyFlushStats()intgetQueueSize()booleanisFlushing()Returns true if the index queue is currently being flushed.voidresetIndexQueue()Resets the index queue removes all entries from the queue without processing them.
-
-
-
Method Detail
-
isFlushing
boolean isFlushing()
Returns true if the index queue is currently being flushed.- Returns:
- true if flushing, false otherwise.
-
flushQueue
boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks- Parameters:
flushMode- - whether to flush the entire queue, or just one batch of batchsize as specified by the system property index.queue.batch.size- Returns:
- whether the flush actually took place
-
flushQueue
default boolean flushQueue()
Flushes the index queue, processing all of the tasks.- Returns:
- whether the flush actually took place
-
resetIndexQueue
void resetIndexQueue()
Resets the index queue removes all entries from the queue without processing them.
-
getLastNonEmptyFlushStats
@Nullable FlushStatistics getLastNonEmptyFlushStats()
- Returns:
- the information about last queue flush.
nullif no flush has occured from system start.
-
getQueueSize
int getQueueSize()
- Returns:
- the number of pending items in the corresponding index queue
- Since:
- 7.9.0
-
addTask
void addTask(ConfluenceIndexTask task)
Adds a new task to the index queue
-
-