Class LuceneBatchedWorkProcessor

  • All Implemented Interfaces:
    BatchedWorkProcessor

    public class LuceneBatchedWorkProcessor
    extends Object
    implements BatchedWorkProcessor
    A thread-safe component responsible for applying write works to an index writer.

    Ported from Search 5's LuceneBackendQueueTask, in particular.

    • Constructor Detail

    • Method Detail

      • complete

        public void complete()
        Description copied from interface: BatchedWorkProcessor
        Executes any outstanding operation, or schedule their execution.

        Called when the executor considers the work queue complete and does not plan on submitting another batch due to work starvation.

        Specified by:
        complete in interface BatchedWorkProcessor
      • forceCommit

        public void forceCommit()
      • forceRefresh

        public void forceRefresh()