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
Fields Modifier and Type Field Description static java.lang.String
_rcsid
protected java.util.HashMap
docsInNeed
-
Constructor Summary
Constructors Constructor Description BlockingDocuments()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlockingDocument(DocumentDescription dd)
Add a document to the setDocumentDescription
getBlockingDocument()
Pop a document from the set.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
docsInNeed
protected java.util.HashMap docsInNeed
-
-
Method Detail
-
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.
-
-