|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.plugin.lucene.XWikiDocumentQueue
public class XWikiDocumentQueue
This class represents a Queue (FirstInFirstOut) for XWikiDocument objects. It is used during indexing of the wiki. The index is updated whenever the processing queue is not empty. This class is threadsafe, as usually several threads add elements and one thread removes them for processing.
| Constructor Summary | |
|---|---|
XWikiDocumentQueue()
|
|
| Method Summary | |
|---|---|
void |
add(IndexData data)
Adds an item to the queue. |
int |
getSize()
Returns the number of elements in the queue. |
boolean |
isEmpty()
Check if the queue is empty or not. |
IndexData |
remove()
Remove an item from the queue and return it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiDocumentQueue()
| Method Detail |
|---|
public IndexData remove()
throws org.apache.commons.collections.BufferUnderflowException
org.apache.commons.collections.BufferUnderflowException - If the queue is empty.public void add(IndexData data)
data - IndexData object to add to the queue.public boolean isEmpty()
true if the queue is empty, false otherwise.public int getSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||