|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.search.lucene.queue.InMemoryIndexTaskQueue
public class InMemoryIndexTaskQueue
An in memory implementation of the Index Task Queue. NOTE: We synchronise on the taskqueue object rather than on the queue list itself, because otherwise you get a nasty race condition when you're swapping one queue object for another.
| Constructor Summary | |
|---|---|
InMemoryIndexTaskQueue()
|
|
| Method Summary | |
|---|---|
void |
enqueue(IndexTask task)
Add a new task to this queue. |
void |
enqueueAll(java.util.Collection tasks)
Add a collection of tasks to this queue. |
java.util.List |
flushQueue()
Flush the contents of the queue, returning those elements currently queued as the result. |
java.util.List |
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. |
void |
setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryIndexTaskQueue()
| Method Detail |
|---|
public int getSize()
IndexTaskQueue
getSize in interface IndexTaskQueuepublic java.util.List getQueuedEntries()
IndexTaskQueue
getQueuedEntries in interface IndexTaskQueuepublic void enqueue(IndexTask task)
IndexTaskQueue
enqueue in interface IndexTaskQueuepublic void enqueueAll(java.util.Collection tasks)
IndexTaskQueue
enqueueAll in interface IndexTaskQueuepublic java.util.List flushQueue()
IndexTaskQueue
flushQueue in interface IndexTaskQueuepublic void reset()
IndexTaskQueue
reset in interface IndexTaskQueuepublic void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||