|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(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)
Returns ALL entries in the queue. |
java.util.List<IndexTask> |
getQueuedEntries()
Retrieve a list of all of the queued entries. |
java.util.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 IndexTaskQueue
public java.util.List<IndexTask> getQueuedEntries()
IndexTaskQueue
getQueuedEntries
in interface IndexTaskQueue
public java.util.List<IndexTask> getQueuedEntries(int size)
public void enqueue(IndexTask task)
IndexTaskQueue
enqueue
in interface IndexTaskQueue
public void enqueueAll(java.util.Collection<IndexTask> tasks)
IndexTaskQueue
enqueueAll
in interface IndexTaskQueue
public java.util.List<IndexTask> flushQueue(int numberOfEntries)
flushQueue
in interface IndexTaskQueue
numberOfEntries
- the maximum number of entries to return. This should return the n first entries in the queue.
public void reset()
IndexTaskQueue
reset
in interface IndexTaskQueue
public java.util.List<IndexTask> flushQueue()
IndexTaskQueue
flushQueue
in interface IndexTaskQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |