Class ExtendedBatchBackend
- java.lang.Object
-
- org.infinispan.query.impl.massindex.ExtendedBatchBackend
-
- All Implemented Interfaces:
org.hibernate.search.backend.spi.BatchBackend
public class ExtendedBatchBackend extends Object implements org.hibernate.search.backend.spi.BatchBackend
DecoratesDefaultBatchBackendadding capacity of doing synchronous purges and flushes.- Since:
- 7.2
- Author:
- gustavonalle
-
-
Constructor Summary
Constructors Constructor Description ExtendedBatchBackend(org.hibernate.search.spi.SearchIntegrator integrator, org.hibernate.search.batchindexing.MassIndexerProgressMonitor progressMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitAsyncProcessingCompletion()voiddoWorkInSync(org.hibernate.search.backend.LuceneWork work)voidenqueueAsyncWork(org.hibernate.search.backend.LuceneWork work)voidflush(org.hibernate.search.spi.IndexedTypeSet entityTypes)voidoptimize(org.hibernate.search.spi.IndexedTypeSet entityTypes)voidpurge(org.hibernate.search.spi.IndexedTypeSet entityTypes)
-
-
-
Method Detail
-
purge
public void purge(org.hibernate.search.spi.IndexedTypeSet entityTypes)
-
enqueueAsyncWork
public void enqueueAsyncWork(org.hibernate.search.backend.LuceneWork work) throws InterruptedException- Specified by:
enqueueAsyncWorkin interfaceorg.hibernate.search.backend.spi.BatchBackend- Throws:
InterruptedException
-
awaitAsyncProcessingCompletion
public void awaitAsyncProcessingCompletion()
- Specified by:
awaitAsyncProcessingCompletionin interfaceorg.hibernate.search.backend.spi.BatchBackend
-
doWorkInSync
public void doWorkInSync(org.hibernate.search.backend.LuceneWork work)
- Specified by:
doWorkInSyncin interfaceorg.hibernate.search.backend.spi.BatchBackend
-
flush
public void flush(org.hibernate.search.spi.IndexedTypeSet entityTypes)
- Specified by:
flushin interfaceorg.hibernate.search.backend.spi.BatchBackend
-
optimize
public void optimize(org.hibernate.search.spi.IndexedTypeSet entityTypes)
- Specified by:
optimizein interfaceorg.hibernate.search.backend.spi.BatchBackend
-
-