org.apache.manifoldcf.crawler.interfaces
Class BlockingDocuments
java.lang.Object
org.apache.manifoldcf.crawler.interfaces.BlockingDocuments
public class BlockingDocuments
- extends java.lang.Object
An instance of this class keeps track of a pool of documents that the stuffer thread believes are ready to be reprioritized.
The way it works is that when the stuffer sees documents that it can't use, but which it thinks are eligible from reprioritization,
it hands them to this object. The prioritization thread then takes documents out of this queue and prioritizes them, before it
goes looking for other documents. This process guarantees that the stuffer is not blocked by documents that need reprioritization.
|
Field Summary |
static java.lang.String |
_rcsid
|
protected java.util.HashMap |
docsInNeed
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
docsInNeed
protected java.util.HashMap docsInNeed
BlockingDocuments
public BlockingDocuments()
- Constructor
addBlockingDocument
public void addBlockingDocument(DocumentDescription dd)
- Add a document to the set
getBlockingDocument
public DocumentDescription getBlockingDocument()
- Pop a document from the set.
- Returns:
- null if there are no remaining documents.