Interface EdgeIndexTaskQueue
- All Known Implementing Classes:
JournalEdgeIndexTaskQueue
public interface EdgeIndexTaskQueue
-
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.
-
Method Details
-
enqueue
Add a new task to this queue. -
enqueue
Add a new task to this queue. -
enqueue
Adds aRebuildIndexTaskto the the queue -
getSize
long getSize()Retrieve the number of elements in the queue.- Returns:
- size of the queue.
-
processEntries
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.- Parameters:
action- action to apply queue contents
-