Class JournalEdgeIndexTaskQueue
java.lang.Object
com.atlassian.confluence.plugins.edgeindex.JournalEdgeIndexTaskQueue
- All Implemented Interfaces:
EdgeIndexTaskQueue
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJournalEdgeIndexTaskQueue
(IndexJournalService journalService, EdgeIndexTaskFactory edgeIndexTaskFactory, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, NonFlushingSessionWrapper hibernateNonFlushingSessionWrapper, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enqueue
(IndexTaskType indexTaskType, ContentEntityObject target) Add a new task to this queue.void
enqueue
(IndexTaskType indexTaskType, Edge edge) Add a new task to this queue.void
enqueue
(IndexTaskType indexTaskType, RebuildIndexTask.RebuildIndexParams rebuildIndexParams) Adds aRebuildIndexTask
to the the queuelong
getSize()
Retrieve the number of elements in the queue.void
processEntries
(com.atlassian.fugue.Effect<EdgeIndexTask> action) Apply the given action to contents of the queue.
-
Field Details
-
BATCH_SIZE
public static final int BATCH_SIZE- See Also:
-
-
Constructor Details
-
JournalEdgeIndexTaskQueue
@Autowired public JournalEdgeIndexTaskQueue(IndexJournalService journalService, EdgeIndexTaskFactory edgeIndexTaskFactory, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, NonFlushingSessionWrapper hibernateNonFlushingSessionWrapper, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
enqueue
Description copied from interface:EdgeIndexTaskQueue
Add a new task to this queue.- Specified by:
enqueue
in interfaceEdgeIndexTaskQueue
-
enqueue
Description copied from interface:EdgeIndexTaskQueue
Add a new task to this queue.- Specified by:
enqueue
in interfaceEdgeIndexTaskQueue
-
enqueue
public void enqueue(IndexTaskType indexTaskType, RebuildIndexTask.RebuildIndexParams rebuildIndexParams) Description copied from interface:EdgeIndexTaskQueue
Adds aRebuildIndexTask
to the the queue- Specified by:
enqueue
in interfaceEdgeIndexTaskQueue
-
getSize
public long getSize()Description copied from interface:EdgeIndexTaskQueue
Retrieve the number of elements in the queue.- Specified by:
getSize
in interfaceEdgeIndexTaskQueue
- Returns:
- size of the queue.
-
processEntries
Description copied from interface:EdgeIndexTaskQueue
Apply the given action to contents of the queue. Processing is stopped immediately if the action throws an exception when processing an element. Next call to processEntries will start from the failing element.- Specified by:
processEntries
in interfaceEdgeIndexTaskQueue
- Parameters:
action
- action to apply queue contents
-