public class DocumentCleanupQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected java.util.List<DocumentCleanupSet> |
queue |
protected boolean |
resetFlag |
Constructor and Description |
---|
DocumentCleanupQueue()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDocuments(DocumentCleanupSet dd)
Add a document set to the queue.
|
boolean |
checkIfEmpty(int n)
Check if "empty".
|
void |
clear()
Clear.
|
DocumentCleanupSet |
getDocuments()
Pull a document set off the queue, and wait if there is
nothing there.
|
void |
reset()
Wake up all threads waiting on this queue.
|
public static final java.lang.String _rcsid
protected final java.util.List<DocumentCleanupSet> queue
protected boolean resetFlag
public void reset()
public void clear()
public boolean checkIfEmpty(int n)
n
- is the low-water mark; if the number falls below this, then this method will return true.public void addDocuments(DocumentCleanupSet dd)
dd
- is the document set.public DocumentCleanupSet getDocuments() throws java.lang.InterruptedException
java.lang.InterruptedException