Class LuceneParallelWorkOrchestratorImpl
java.lang.Object
org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>
org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl
- All Implemented Interfaces:
LuceneParallelWorkOrchestrator
public class LuceneParallelWorkOrchestratorImpl
extends AbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>
implements LuceneParallelWorkOrchestrator
-
Field Summary
Fields inherited from class org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator
blockingRetryProducer -
Constructor Summary
ConstructorsConstructorDescriptionLuceneParallelWorkOrchestratorImpl(String name, EventContext eventContext, IndexAccessor indexAccessor, BackendThreads threads) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>protected voiddoStart(ConfigurationPropertySource propertySource) protected voiddoStop()protected voiddoSubmit(org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?> workExecution, OperationSubmitter operationSubmitter) voidForce a commit immediately.<T> voidsubmit(CompletableFuture<T> future, IndexManagementWork<T> work, OperationSubmitter operationSubmitter) Methods inherited from class org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator
name, preStop, start, stop, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestrator
submit
-
Constructor Details
-
LuceneParallelWorkOrchestratorImpl
public LuceneParallelWorkOrchestratorImpl(String name, EventContext eventContext, IndexAccessor indexAccessor, BackendThreads threads)
-
-
Method Details
-
submit
public <T> void submit(CompletableFuture<T> future, IndexManagementWork<T> work, OperationSubmitter operationSubmitter) - Specified by:
submitin interfaceLuceneParallelWorkOrchestrator
-
forceCommitInCurrentThread
public void forceCommitInCurrentThread()Description copied from interface:LuceneParallelWorkOrchestratorForce a commit immediately.The commit will be executed in the current thread.
- Specified by:
forceCommitInCurrentThreadin interfaceLuceneParallelWorkOrchestrator
-
doStart
- Specified by:
doStartin classAbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>
-
doSubmit
protected void doSubmit(org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?> workExecution, OperationSubmitter operationSubmitter) throws InterruptedException - Specified by:
doSubmitin classAbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>- Throws:
InterruptedException
-
completion
- Specified by:
completionin classAbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractWorkOrchestrator<org.hibernate.search.backend.lucene.orchestration.impl.LuceneParallelWorkOrchestratorImpl.WorkExecution<?>>
-