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 ofConfluenceIndexTask
s.- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexTaskFactoryInternal
indexTaskFactory
-
Fields inherited from class com.atlassian.confluence.internal.search.queue.AbstractJournalIndexTaskQueue
anyTypeDao, CHANGE_JOURNAL_ID, CONTENT_JOURNAL_ID, indexFlushRequester, journalIdentifier, journalService
-
-
Constructor Summary
Constructors Constructor Description JournalIndexTaskQueue(JournalService journalService, IndexTaskFactoryInternal indexTaskFactory, AnyTypeDao anyTypeDao, IndexFlushRequester indexFlushRequester, JournalIdentifier journalIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable Searchable
getSearchableFromEntry(JournalEntry entry)
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, flushQueue, flushQueue, flushQueue, flushQueue, flushQueueWithActionOnIterableOfTasks, getQueuedEntries, getQueuedEntries, getSize, reset, toTask
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.IndexTaskQueue
flushAndExecute, flushAndExecute
-
-
-
-
Field Detail
-
indexTaskFactory
protected final IndexTaskFactoryInternal indexTaskFactory
-
-
Constructor Detail
-
JournalIndexTaskQueue
public JournalIndexTaskQueue(JournalService journalService, IndexTaskFactoryInternal indexTaskFactory, AnyTypeDao anyTypeDao, IndexFlushRequester indexFlushRequester, JournalIdentifier journalIdentifier)
- Since:
- 7.9.0
-
-
Method Detail
-
toEntry
protected Optional<JournalEntry> toEntry(ConfluenceIndexTask task)
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
protected @Nullable Searchable getSearchableFromEntry(JournalEntry entry)
-
-