Class QueuingChangeIndexer
- java.lang.Object
-
- com.atlassian.confluence.impl.search.QueuingChangeIndexer
-
- All Implemented Interfaces:
Indexer
,ChangeIndexer
public class QueuingChangeIndexer extends Object implements ChangeIndexer
-
-
Constructor Summary
Constructors Constructor Description QueuingChangeIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
index(Searchable searchable)
void
reIndex(Searchable searchable)
void
reIndexAllVersions(Searchable searchable)
Reindexes all versions of the specified content.void
reindexUsersInGroup(String groupName)
void
setAsyncIndexer(Supplier<ChangeIndexer> asyncIndexer)
void
setIndexerControl(IndexerControl indexerControl)
void
setIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)
void
setSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)
void
setSyncIndexer(Supplier<ChangeIndexer> syncIndexer)
void
setTaskQueue(IndexTaskQueue taskQueue)
ChangeIndexer
synchronous()
Return synchronous indexer that will perform index in the caller thread.void
unIndex(Searchable searchable)
void
unIndexSpace(Space space)
-
-
-
Method Detail
-
index
public void index(Searchable searchable)
-
unIndex
public void unIndex(Searchable searchable)
-
unIndexSpace
public void unIndexSpace(Space space)
- Specified by:
unIndexSpace
in interfaceChangeIndexer
-
reindexUsersInGroup
public void reindexUsersInGroup(String groupName)
- Specified by:
reindexUsersInGroup
in interfaceChangeIndexer
-
reIndex
public void reIndex(Searchable searchable)
-
reIndexAllVersions
public void reIndexAllVersions(Searchable searchable)
Description copied from interface:ChangeIndexer
Reindexes all versions of the specified content. This could be expensive as the cost is proportional to the number of versions present. This should be invoked instead ofIndexer.reIndex(Searchable)
if what has been updated in the specified searchable is information that is duplicated across all versions of the changeable in the index (say permissions).- Specified by:
reIndexAllVersions
in interfaceChangeIndexer
- Parameters:
searchable
- aVersioned
changeable.
-
synchronous
public ChangeIndexer synchronous()
Description copied from interface:ChangeIndexer
Return synchronous indexer that will perform index in the caller thread.- Specified by:
synchronous
in interfaceChangeIndexer
-
setTaskQueue
public void setTaskQueue(IndexTaskQueue taskQueue)
-
setIndexTaskFactory
public void setIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)
-
setIndexerControl
public void setIndexerControl(IndexerControl indexerControl)
-
setSearchIndexAccessor
public void setSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)
-
setAsyncIndexer
public void setAsyncIndexer(Supplier<ChangeIndexer> asyncIndexer)
-
setSyncIndexer
public void setSyncIndexer(Supplier<ChangeIndexer> syncIndexer)
-
-