org.hibernate.search.backend.impl
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) |
| 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)
public void add(Work work, WorkQueue workQueue)
QueueingProcessoradd in interface QueueingProcessorpublic void prepareWorks(WorkQueue workQueue)
QueueingProcessorprepareWorks in interface QueueingProcessorpublic void performWorks(WorkQueue workQueue)
QueueingProcessorperformWorks in interface QueueingProcessorpublic void cancelWorks(WorkQueue workQueue)
QueueingProcessorcancelWorks in interface QueueingProcessorCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved