Class OnRestoreSpaceSearchIndexer
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.searchindexer.OnRestoreSpaceSearchIndexer
- All Implemented Interfaces:
 OnRestoreSearchIndexer
Responsible for indexing added content after or during space restore.
 It receives information about persisted objects and add searchable ones to the journal for further indexing.
- Since:
 - 8.2.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionOnRestoreSpaceSearchIndexer(SearchIndexerAdapter searchIndexerAdapter, ImportedObjectsStashFactory importedObjectsStashFactory, ParallelTasksExecutor parallelTasksExecutor)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidflush()It is called when all searchable objects are persisted so the indexer can finish its job.voidonObjectsPersisting(Collection<ImportedObjectV2> importedObjects) A consumer accepting persisted objects. 
- 
Constructor Details
- 
OnRestoreSpaceSearchIndexer
public OnRestoreSpaceSearchIndexer(SearchIndexerAdapter searchIndexerAdapter, ImportedObjectsStashFactory importedObjectsStashFactory, ParallelTasksExecutor parallelTasksExecutor)  
 - 
 - 
Method Details
- 
onObjectsPersisting
public void onObjectsPersisting(Collection<ImportedObjectV2> importedObjects) throws BackupRestoreException Description copied from interface:OnRestoreSearchIndexerA consumer accepting persisted objects. Objects have database IDs.- Specified by:
 onObjectsPersistingin interfaceOnRestoreSearchIndexer- Throws:
 BackupRestoreException
 - 
flush
Description copied from interface:OnRestoreSearchIndexerIt is called when all searchable objects are persisted so the indexer can finish its job. This method can be called when not all historical versions are persisted.- Specified by:
 flushin interfaceOnRestoreSearchIndexer- Throws:
 BackupRestoreException
 
 -