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)
QueueingProcessor
add
in interface QueueingProcessor
public void prepareWorks(WorkQueue workQueue)
QueueingProcessor
prepareWorks
in interface QueueingProcessor
public void performWorks(WorkQueue workQueue)
QueueingProcessor
performWorks
in interface QueueingProcessor
public void cancelWorks(WorkQueue workQueue)
QueueingProcessor
cancelWorks
in interface QueueingProcessor
Copyright © 2006-2014 Red Hat, Inc. All Rights Reserved