Class 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 Detail

      • docsInNeed

        protected java.util.HashMap docsInNeed
    • Constructor Detail

      • BlockingDocuments

        public BlockingDocuments()
        Constructor
    • 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.