Interface ReIndexJobManagerInternal
- All Superinterfaces:
- ReIndexJobManager
- All Known Implementing Classes:
- DefaultReIndexJobManager
To be used within Confluence''s core to manage re-index job statuses.
- Since:
- 7.6.0
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidupdateReIndexJob(ReIndexJob reIndexJob) Update the reindexJob in an atomic operation (i.e.voidupdateReIndexJobIfPresent(Consumer<ReIndexJob> updater) Try to update current re-index job in an atomic operation.Methods inherited from interface com.atlassian.confluence.index.status.ReIndexJobManageracknowledgeRunningJob, clear, createNewJob, createNewJob, getRunningOrMostRecentReIndex, isReIndexing
- 
Field Details- 
REINDEX_IMPROVEMENT_DARKFEATURE_KEY- See Also:
 
- 
JOB_PERSISTER_LOCK_NAME- See Also:
 
 
- 
- 
Method Details- 
updateReIndexJobIfPresentvoid updateReIndexJobIfPresent(Consumer<ReIndexJob> updater) throws InterruptedException, TimeoutException Try to update current re-index job in an atomic operation. 3 steps: 1. Fetch currentReIndexJob, if not found then skip 2 and 3. 2. Mutate the running reIndexJob using the providedupdater. 3. Persist the updated reIndexJob.- Parameters:
- updater- a callback to mutate running- ReIndexJob
- Throws:
- InterruptedException- if interrupted while waiting to update the job
- TimeoutException- if cannot obtain exclusive access in order to update the job within reasonable time
 
- 
updateReIndexJobUpdate the reindexJob in an atomic operation (i.e. with a cluster lock)- Throws:
- InterruptedException
- TimeoutException
 
 
-