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 Summary
Modifier and TypeMethodDescriptionvoidForce a commit immediately.voidForce a refresh immediately.default <T> voidsubmit(CompletableFuture<T> future, IndexingWork<T> work, OperationSubmitter operationSubmitter) voidsubmit(LuceneBatchedWork<?> work, OperationSubmitter operationSubmitter)
-
Method Details
-
submit
default <T> void submit(CompletableFuture<T> future, IndexingWork<T> work, OperationSubmitter operationSubmitter) -
submit
-
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.
-