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)
QueueingProcessor
add
in interface QueueingProcessor
work
- the work to addworkQueue
- the work queuepublic void prepareWorks(WorkQueue workQueue)
QueueingProcessor
prepareWorks
in interface QueueingProcessor
workQueue
- the work queuepublic void performWorks(WorkQueue workQueue)
QueueingProcessor
performWorks
in interface QueueingProcessor
workQueue
- the work queuepublic void cancelWorks(WorkQueue workQueue)
QueueingProcessor
cancelWorks
in interface QueueingProcessor
workQueue
- the work queueCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved