|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexTaskQueue
Confluence queues all of its index requests and then executes them in bulk. The indexTaskQueue is there to assist in the queueing the tasks until they are ready to be processed.
Method Summary | |
---|---|
void |
enqueue(IndexTask task)
Add a new task to this queue. |
void |
enqueueAll(java.util.Collection<IndexTask> tasks)
Add a collection of tasks to this queue. |
java.util.List<IndexTask> |
flushQueue()
Flush the contents of the queue, returning those elements currently queued as the result. |
java.util.List<IndexTask> |
flushQueue(int numberOfEntries)
Flush the contents of the queue, returning those elements currently queued as the result. |
java.util.List<IndexTask> |
getQueuedEntries()
Retrieve a list of all of the queued entries. |
int |
getSize()
Retrieve the number of elements in the queue. |
void |
reset()
Remove all queued index tasks from this queue. |
Method Detail |
---|
int getSize()
java.util.List<IndexTask> getQueuedEntries()
void enqueue(IndexTask task)
task
- void enqueueAll(java.util.Collection<IndexTask> tasks)
tasks
- java.util.List<IndexTask> flushQueue(int numberOfEntries)
numberOfEntries
- the maximum number of entries to return. This should return the n first entries in the queue.
java.util.List<IndexTask> flushQueue()
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |