org.hibernate.search.backend.impl.batch
Class DefaultBatchBackend
java.lang.Object
org.hibernate.search.backend.impl.batch.DefaultBatchBackend
- All Implemented Interfaces:
- BatchBackend
public class DefaultBatchBackend
- extends Object
- implements BatchBackend
This is not meant to be used as a regular
backend, only to apply batch changes to the index. Several threads
are used to make changes to each index, so order of Work processing is not guaranteed.
- Author:
- Sanne Grinovero
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBatchBackend
public DefaultBatchBackend(SearchFactoryIntegrator searchFactoryImplementor,
MassIndexerProgressMonitor progressMonitor)
enqueueAsyncWork
public void enqueueAsyncWork(LuceneWork work)
throws InterruptedException
- Description copied from interface:
BatchBackend
- Enqueues one work to be processed asynchronously
- Specified by:
enqueueAsyncWork in interface BatchBackend
- Throws:
InterruptedException - if the current thread is interrupted while
waiting for the work queue to have enough space.
doWorkInSync
public void doWorkInSync(LuceneWork work)
- Description copied from interface:
BatchBackend
- Does one work in sync
- Specified by:
doWorkInSync in interface BatchBackend
Copyright © 2006-2011 Hibernate. All Rights Reserved.