|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
InMemoryIndexTaskQueue()
|
|
| Method Summary | |
|---|---|
void |
enqueue(IndexTask task)
Add a new task to this queue. |
void |
enqueueAll(Collection<IndexTask> tasks)
Add a collection of tasks to this queue. |
List<IndexTask> |
flushQueue()
Flush the contents of the queue, returning those elements currently queued as the result. |
List<IndexTask> |
flushQueue(int numberOfEntries)
Returns ALL entries in the queue. |
List<IndexTask> |
getQueuedEntries()
Retrieve a list of all of the queued entries. |
List<IndexTask> |
getQueuedEntries(int size)
|
int |
getSize()
Retrieve the number of elements in the queue. |
void |
reset()
Remove all queued index tasks from this queue. |
| 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 List<IndexTask> getQueuedEntries()
IndexTaskQueue
getQueuedEntries in interface IndexTaskQueuepublic List<IndexTask> getQueuedEntries(int size)
public void enqueue(IndexTask task)
IndexTaskQueue
enqueue in interface IndexTaskQueuepublic void enqueueAll(Collection<IndexTask> tasks)
IndexTaskQueue
enqueueAll in interface IndexTaskQueuepublic List<IndexTask> flushQueue(int numberOfEntries)
flushQueue in interface IndexTaskQueuenumberOfEntries - the maximum number of entries to return. This should return the n first entries in the queue.
public void reset()
IndexTaskQueue
reset in interface IndexTaskQueuepublic List<IndexTask> flushQueue()
IndexTaskQueue
flushQueue in interface IndexTaskQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||