Interface EdgeIndexTask

All Superinterfaces:
ConfluenceIndexTask, ConvertibleToJournalEntry, IndexTask
All Known Implementing Classes:
AddEdgeDocumentIndexTask, DeleteEdgeDocumentIndexTask, DeleteEdgeTargetingDocumentIndexTask, DeleteEdgeTypeByUserDocumentIndexTask, RebuildIndexTask, ReIndexPermissionsIndexTask

public interface EdgeIndexTask extends ConfluenceIndexTask
This interface is the same as the ConfluenceIndexTask. The reason why it exists is to make it clear that the task is for an edge index.
Since:
7.17
  • Method Details

    • convertToJournalEntry

      default Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalIdentifier)
      This default method returns an empty Optional object because an index task for an edge will be serialised and stored as the entry message when being queued.

      The entry message is de-serialised to the task later when the task is about to perform.

      Specified by:
      convertToJournalEntry in interface ConvertibleToJournalEntry
      Parameters:
      journalIdentifier - the journal identifier
      Returns:
      an empty Optional