public class BatchedQueueingProcessor extends Object implements QueueingProcessor
performWorks(org.hibernate.search.backend.impl.WorkQueue) is called.
The work is then executed synchronously or asynchronously.| Constructor and Description |
|---|
BatchedQueueingProcessor(Map<Class<?>,EntityIndexBinding> entityIndexBindings,
Properties properties,
IndexManagerHolder indexManagerHolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Work work,
WorkQueue workQueue)
Add a work
TODO move that somewhere else, it does not really fit here
|
void |
cancelWorks(WorkQueue workQueue)
Rollback works
|
void |
performWorks(WorkQueue workQueue)
Execute works
|
void |
prepareWorks(WorkQueue workQueue)
prepare resources for a later performWorks call
|
public BatchedQueueingProcessor(Map<Class<?>,EntityIndexBinding> entityIndexBindings, Properties properties, IndexManagerHolder indexManagerHolder)
public void add(Work work, WorkQueue workQueue)
QueueingProcessoradd in interface QueueingProcessorwork - the work to addworkQueue - the work queuepublic void prepareWorks(WorkQueue workQueue)
QueueingProcessorprepareWorks in interface QueueingProcessorworkQueue - the work queuepublic void performWorks(WorkQueue workQueue)
QueueingProcessorperformWorks in interface QueueingProcessorworkQueue - the work queuepublic void cancelWorks(WorkQueue workQueue)
QueueingProcessorcancelWorks in interface QueueingProcessorworkQueue - the work queueCopyright © 2006–2016 Hibernate. All rights reserved.