|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.backend.impl.batch.DefaultBatchBackend
public class DefaultBatchBackend
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.
| Constructor Summary | |
|---|---|
DefaultBatchBackend(SearchFactoryIntegrator searchFactoryImplementor,
MassIndexerProgressMonitor progressMonitor)
|
|
| Method Summary | |
|---|---|
void |
doWorkInSync(LuceneWork work)
Does one work in sync |
void |
enqueueAsyncWork(LuceneWork work)
Enqueues one work to be processed asynchronously |
void |
flush(Class<?> entityType)
Since most work is done async in the backend, we need to flush at the end to make sure we don't return control before all work was processed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBatchBackend(SearchFactoryIntegrator searchFactoryImplementor,
MassIndexerProgressMonitor progressMonitor)
| Method Detail |
|---|
public void enqueueAsyncWork(LuceneWork work)
throws InterruptedException
BatchBackend
enqueueAsyncWork in interface BatchBackendInterruptedException - if the current thread is interrupted while
waiting for the work queue to have enough space.public void doWorkInSync(LuceneWork work)
BatchBackend
doWorkInSync in interface BatchBackendpublic void flush(Class<?> entityType)
BatchBackend
flush in interface BatchBackendentityType - flushes all indexes containing entities of this type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||