@LuceneIndependent @Internal public class LuceneIncrementalIndexManager extends Object implements IncrementalIndexManager
Modifier and Type | Field and Description |
---|---|
static String |
QUEUE_BATCH_SIZE_KEY |
Constructor and Description |
---|
LuceneIncrementalIndexManager(IndexLockService lockService,
IndexTaskQueue<ConfluenceIndexTask> taskQueue,
SearchIndexAccessor searchIndexAccessor,
com.atlassian.event.api.EventPublisher eventPublisher,
FullReindexManager fullReindexManager,
SearchIndex targetIndex) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(ConfluenceIndexTask task)
Adds a new task to the index queue
|
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
FlushStatistics |
getLastNonEmptyFlushStats() |
int |
getQueueSize() |
boolean |
isFlushing()
Returns true if the the index queue is currently being flushed.
|
void |
resetIndexQueue()
Delete all of the entries on the index queue.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flushQueue
public static final String QUEUE_BATCH_SIZE_KEY
public LuceneIncrementalIndexManager(IndexLockService lockService, IndexTaskQueue<ConfluenceIndexTask> taskQueue, SearchIndexAccessor searchIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, FullReindexManager fullReindexManager, SearchIndex targetIndex)
@Transactional(readOnly=true, propagation=SUPPORTS) public boolean isFlushing()
IncrementalIndexManager
isFlushing
in interface IncrementalIndexManager
@Transactional(readOnly=true, propagation=REQUIRED) public boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IncrementalIndexManager
flushQueue
in interface IncrementalIndexManager
flushMode
- - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.size@Transactional(propagation=REQUIRED) public void resetIndexQueue()
resetIndexQueue
in interface IncrementalIndexManager
@Transactional(readOnly=true, propagation=SUPPORTS) public FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats
in interface IncrementalIndexManager
null
if no flush has occured from system start.@Transactional(readOnly=true, propagation=SUPPORTS) public int getQueueSize()
getQueueSize
in interface IncrementalIndexManager
@Transactional(propagation=REQUIRED) public void addTask(ConfluenceIndexTask task)
IncrementalIndexManager
addTask
in interface IncrementalIndexManager
Copyright © 2003–2022 Atlassian. All rights reserved.