Interface LuceneParallelWorkOrchestrator
-
- All Known Implementing Classes:
LuceneParallelWorkOrchestratorImpl
public interface LuceneParallelWorkOrchestratorA thread-safe component planning the execution of works in parallel, without any consideration for the order they were submitted in.Parallel orchestrators are suitable when the client takes the responsibility of submitting works as needed to implement ordering: if work #2 must be executed after work #1, the client will take care of waiting until #1 is done before he submits #2.
With a parallel orchestrator:
- Works are executed in unpredictable order, irrespective of the order they were submitted in.
- The application will not wait for already-submitted works to finish when shutting down.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidforceCommitInCurrentThread()Force a commit immediately.<T> voidsubmit(CompletableFuture<T> future, IndexManagementWork<T> work, OperationSubmitter operationSubmitter)default <T> CompletableFuture<T>submit(IndexManagementWork<T> work, OperationSubmitter operationSubmitter)
-
-
-
Method Detail
-
submit
default <T> CompletableFuture<T> submit(IndexManagementWork<T> work, OperationSubmitter operationSubmitter)
-
submit
<T> void submit(CompletableFuture<T> future, IndexManagementWork<T> work, OperationSubmitter operationSubmitter)
-
forceCommitInCurrentThread
void forceCommitInCurrentThread()
Force a commit immediately.The commit will be executed in the current thread.
-
-