Class UpdateDocumentIndexTask
java.lang.Object
com.atlassian.confluence.internal.search.tasks.UpdateDocumentIndexTask
- All Implemented Interfaces:
ConfluenceIndexTask,ConvertibleToJournalEntry,HandleAware,IndexTask
- Direct Known Subclasses:
UpdatePrefetchDocumentIndexTask
@LuceneIndependent
@Internal
public class UpdateDocumentIndexTask
extends Object
implements ConfluenceIndexTask, HandleAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Handleprotected final booleanprotected final IndexTaskFactoryInternalprotected final JournalEntryTypeprotected final Searchableprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionUpdateDocumentIndexTask(Searchable searchable, IndexTaskFactoryInternal indexTaskFactory) UpdateDocumentIndexTask(Searchable searchable, IndexTaskFactoryInternal indexTaskFactory, boolean includeDependents) UpdateDocumentIndexTask(Searchable searchable, IndexTaskFactoryInternal indexTaskFactory, boolean includeDependents, boolean skipDeletes) -
Method Summary
Modifier and TypeMethodDescriptionconvertToJournalEntry(JournalIdentifier journalId) Convert to journal entry.booleanA description of the task that can be presented to the user via the UI.inthashCode()booleanvoidperform(SearchIndexWriter writer) Executes this task against a document writer.toString()
-
Field Details
-
journalEntryType
-
searchable
-
handle
-
indexTaskFactory
-
includeDependents
protected final boolean includeDependents -
skipDeletes
protected final boolean skipDeletes
-
-
Constructor Details
-
UpdateDocumentIndexTask
-
UpdateDocumentIndexTask
public UpdateDocumentIndexTask(Searchable searchable, IndexTaskFactoryInternal indexTaskFactory, boolean includeDependents) -
UpdateDocumentIndexTask
public UpdateDocumentIndexTask(Searchable searchable, IndexTaskFactoryInternal indexTaskFactory, boolean includeDependents, boolean skipDeletes)
-
-
Method Details
-
getDescription
Description copied from interface:IndexTaskA description of the task that can be presented to the user via the UI.- Specified by:
getDescriptionin interfaceIndexTask- Returns:
- an readable message.
-
perform
Description copied from interface:ConfluenceIndexTaskExecutes this task against a document writer.- Specified by:
performin interfaceConfluenceIndexTask- Throws:
IOException
-
isRetryable
public boolean isRetryable()- Specified by:
isRetryablein interfaceConfluenceIndexTask- Returns:
trueif this task is retryable in journal queue,falseotherwise.
-
convertToJournalEntry
Description copied from interface:ConvertibleToJournalEntryConvert to journal entry.- Specified by:
convertToJournalEntryin interfaceConvertibleToJournalEntry- Parameters:
journalId- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
equals
-
hashCode
public int hashCode() -
getHandle
- Specified by:
getHandlein interfaceHandleAware- Returns:
- the handle
-
toString
-
getSearchIndex
- Specified by:
getSearchIndexin interfaceConfluenceIndexTask- Returns:
- the
SearchIndexthat the task should write to
-