Class DocumentIndexer

    • Constructor Detail

      • DocumentIndexer

        public DocumentIndexer​(int queueSize,
                               File indexDir,
                               Long timeout)
        Creates a new DocumentIndexer.
        Parameters:
        indexDir - the directory to read/save the Lucene index from/to
        timeout - the timeout in milliseconds when retrieving the next DocumentEvent from a DocumentProducer
      • DocumentIndexer

        public DocumentIndexer​(File indexDir,
                               Long timeout)
    • Method Detail

      • run

        public void run()
        Starts this DocumentIndexer, running forever (until interrupted).
        Specified by:
        run in interface Runnable