Class JournalIndexTaskQueue
java.lang.Object
com.atlassian.confluence.internal.search.queue.AbstractJournalIndexTaskQueue<ConfluenceIndexTask>
com.atlassian.confluence.internal.search.queue.JournalIndexTaskQueue
- All Implemented Interfaces:
IndexTaskQueue<ConfluenceIndexTask>
- Direct Known Subclasses:
ChangeIndexTaskQueue
,ContentIndexTaskQueue
public abstract class JournalIndexTaskQueue
extends AbstractJournalIndexTaskQueue<ConfluenceIndexTask>
A queue of
ConfluenceIndexTask
s.- Since:
- 5.6
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.internal.search.queue.AbstractJournalIndexTaskQueue
anyTypeDao, CHANGE_JOURNAL_ID, CONTENT_JOURNAL_ID, indexFlushRequester, journalIdentifier, journalService
-
Constructor Summary
ConstructorsConstructorDescriptionJournalIndexTaskQueue
(JournalService journalService, IndexTaskFactoryInternal indexTaskFactory, AnyTypeDao anyTypeDao, IndexFlushRequester indexFlushRequester, JournalIdentifier journalIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Searchable
protected Optional
<JournalEntry> toEntry
(ConfluenceIndexTask task) Converts an ConfluenceIndexTask to a JournalEntry.Methods inherited from class com.atlassian.confluence.internal.search.queue.AbstractJournalIndexTaskQueue
enqueue, enqueueAll, flushAndExecute, flushAndExecute, flushQueue, flushQueue, flushQueueWithActionOnIterableOfTasks, getJournalIdentifier, getQueuedEntries, getQueuedEntries, getSize, reset, toTask
-
Field Details
-
indexTaskFactory
-
-
Constructor Details
-
JournalIndexTaskQueue
public JournalIndexTaskQueue(JournalService journalService, IndexTaskFactoryInternal indexTaskFactory, AnyTypeDao anyTypeDao, IndexFlushRequester indexFlushRequester, JournalIdentifier journalIdentifier) - Since:
- 7.9.0
-
-
Method Details
-
toEntry
Converts an ConfluenceIndexTask to a JournalEntry.- Specified by:
toEntry
in classAbstractJournalIndexTaskQueue<ConfluenceIndexTask>
- Parameters:
task
- a task- Returns:
- the converted entry, or null if the entry is invalid (say the searchable for an add task no longer exists).
-
getSearchableFromEntry
-