Class ExtendedBatchBackend

  • All Implemented Interfaces:
    org.hibernate.search.backend.spi.BatchBackend

    public class ExtendedBatchBackend
    extends Object
    implements org.hibernate.search.backend.spi.BatchBackend
    Decorates DefaultBatchBackend adding capacity of doing synchronous purges and flushes.
    Since:
    7.2
    Author:
    gustavonalle
    • Constructor Detail

      • ExtendedBatchBackend

        public ExtendedBatchBackend​(org.hibernate.search.spi.SearchIntegrator integrator,
                                    org.hibernate.search.batchindexing.MassIndexerProgressMonitor progressMonitor)
    • 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:
        enqueueAsyncWork in interface org.hibernate.search.backend.spi.BatchBackend
        Throws:
        InterruptedException
      • awaitAsyncProcessingCompletion

        public void awaitAsyncProcessingCompletion()
        Specified by:
        awaitAsyncProcessingCompletion in interface org.hibernate.search.backend.spi.BatchBackend
      • doWorkInSync

        public void doWorkInSync​(org.hibernate.search.backend.LuceneWork work)
        Specified by:
        doWorkInSync in interface org.hibernate.search.backend.spi.BatchBackend
      • flush

        public void flush​(org.hibernate.search.spi.IndexedTypeSet entityTypes)
        Specified by:
        flush in interface org.hibernate.search.backend.spi.BatchBackend
      • optimize

        public void optimize​(org.hibernate.search.spi.IndexedTypeSet entityTypes)
        Specified by:
        optimize in interface org.hibernate.search.backend.spi.BatchBackend