Interface LuceneSerialWorkOrchestrator

  • All Known Implementing Classes:
    LuceneSerialWorkOrchestratorImpl

    public interface LuceneSerialWorkOrchestrator
    An orchestrator that batches together works sent from other threads.

    More precisely, the submitted works are sent to a queue which is processed periodically in a separate thread. This allows processing multiple works in the order they were submitted and only committing once, potentially reducing the frequency of commits.

    • Method Detail

      • forceCommitInCurrentThread

        void forceCommitInCurrentThread()
        Force a commit immediately.

        The commit will be executed in the current thread.

      • forceRefreshInCurrentThread

        void forceRefreshInCurrentThread()
        Force a refresh immediately.

        The refresh will be executed in the current thread.