Class LuceneSerialWorkOrchestratorImpl
java.lang.Object
org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator<LuceneBatchedWork<?>>
org.hibernate.search.backend.lucene.orchestration.impl.LuceneSerialWorkOrchestratorImpl
- All Implemented Interfaces:
LuceneSerialWorkOrchestrator
public class LuceneSerialWorkOrchestratorImpl
extends AbstractWorkOrchestrator<LuceneBatchedWork<?>>
implements LuceneSerialWorkOrchestrator
-
Field Summary
Fields inherited from class org.hibernate.search.engine.backend.orchestration.spi.AbstractWorkOrchestrator
blockingRetryProducer -
Constructor Summary
ConstructorsConstructorDescriptionLuceneSerialWorkOrchestratorImpl(String name, LuceneBatchedWorkProcessor processor, BackendThreads threads, FailureHandler failureHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<?>protected voiddoStart(ConfigurationPropertySource propertySource) protected voiddoStop()protected voiddoSubmit(LuceneBatchedWork<?> work, OperationSubmitter operationSubmitter) voidForce a commit immediately.voidForce a refresh immediately.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.LuceneSerialWorkOrchestrator
submit, submit
-
Constructor Details
-
LuceneSerialWorkOrchestratorImpl
public LuceneSerialWorkOrchestratorImpl(String name, LuceneBatchedWorkProcessor processor, BackendThreads threads, FailureHandler failureHandler) - Parameters:
name- The name of the orchestrator thread (and of this orchestrator when reporting errors)processor- A processor to use in the background thread.threads- The threads for this backend.failureHandler- A failure handler to report failures of the background thread.
-
-
Method Details
-
forceCommitInCurrentThread
public void forceCommitInCurrentThread()Description copied from interface:LuceneSerialWorkOrchestratorForce a commit immediately.The commit will be executed in the current thread.
- Specified by:
forceCommitInCurrentThreadin interfaceLuceneSerialWorkOrchestrator
-
forceRefreshInCurrentThread
public void forceRefreshInCurrentThread()Description copied from interface:LuceneSerialWorkOrchestratorForce a refresh immediately.The refresh will be executed in the current thread.
- Specified by:
forceRefreshInCurrentThreadin interfaceLuceneSerialWorkOrchestrator
-
doStart
- Specified by:
doStartin classAbstractWorkOrchestrator<LuceneBatchedWork<?>>
-
doSubmit
protected void doSubmit(LuceneBatchedWork<?> work, OperationSubmitter operationSubmitter) throws InterruptedException - Specified by:
doSubmitin classAbstractWorkOrchestrator<LuceneBatchedWork<?>>- Throws:
InterruptedException
-
completion
- Specified by:
completionin classAbstractWorkOrchestrator<LuceneBatchedWork<?>>
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractWorkOrchestrator<LuceneBatchedWork<?>>
-