Class CleanupQueuedDocument


  • public class CleanupQueuedDocument
    extends DeleteQueuedDocument
    This class represents a document that will be placed on the document cleanup queue, and will be processed by a cleanup worker thread.
    • Field Detail

      • deleteFromIndex

        protected boolean deleteFromIndex
        Flag indicating whether we should delete the document from the index or not.
    • Constructor Detail

      • CleanupQueuedDocument

        public CleanupQueuedDocument​(DocumentDescription documentDescription,
                                     boolean deleteFromIndex)
        Constructor.
        Parameters:
        documentDescription - is the document description.
    • Method Detail

      • shouldBeRemovedFromIndex

        public boolean shouldBeRemovedFromIndex()
        Check if document should be removed from the index.
        Returns:
        true if it should be removed.