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 TypeMethodDescriptionvoidenqueue(IndexTaskType indexTaskType, ContentEntityObject target) Add a new task to this queue.voidenqueue(IndexTaskType indexTaskType, Edge edge) Add a new task to this queue.voidenqueue(IndexTaskType indexTaskType, RebuildIndexTask.RebuildIndexParams rebuildIndexParams) Adds aRebuildIndexTaskto the the queuelonggetSize()Retrieve the number of elements in the queue.voidprocessEntries(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:EdgeIndexTaskQueueAdd a new task to this queue.- Specified by:
enqueuein interfaceEdgeIndexTaskQueue
-
enqueue
Description copied from interface:EdgeIndexTaskQueueAdd a new task to this queue.- Specified by:
enqueuein interfaceEdgeIndexTaskQueue
-
enqueue
public void enqueue(IndexTaskType indexTaskType, RebuildIndexTask.RebuildIndexParams rebuildIndexParams) Description copied from interface:EdgeIndexTaskQueueAdds aRebuildIndexTaskto the the queue- Specified by:
enqueuein interfaceEdgeIndexTaskQueue
-
getSize
public long getSize()Description copied from interface:EdgeIndexTaskQueueRetrieve the number of elements in the queue.- Specified by:
getSizein interfaceEdgeIndexTaskQueue- Returns:
- size of the queue.
-
processEntries
Description copied from interface:EdgeIndexTaskQueueApply 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:
processEntriesin interfaceEdgeIndexTaskQueue- Parameters:
action- action to apply queue contents
-