|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.backend.impl.BatchedQueueingProcessor
public class BatchedQueueingProcessor
Batch work until performWorks(org.hibernate.search.backend.WorkQueue) is called.
The work is then executed synchronously or asynchronously.
| Constructor Summary | |
|---|---|
BatchedQueueingProcessor(SearchFactoryImplementor searchFactoryImplementor,
java.util.Properties properties)
|
|
| Method Summary | |
|---|---|
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 |
close()
clean resources This method should log errors rather than raise an exception |
static boolean |
isConfiguredAsSync(java.util.Properties properties)
|
void |
performWorks(WorkQueue workQueue)
Execute works |
void |
prepareWorks(WorkQueue workQueue)
prepare resources for a later performWorks call |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchedQueueingProcessor(SearchFactoryImplementor searchFactoryImplementor,
java.util.Properties properties)
| Method Detail |
|---|
public void add(Work work,
WorkQueue workQueue)
QueueingProcessor
add in interface QueueingProcessorpublic void prepareWorks(WorkQueue workQueue)
QueueingProcessor
prepareWorks in interface QueueingProcessorpublic void performWorks(WorkQueue workQueue)
QueueingProcessor
performWorks in interface QueueingProcessorpublic void cancelWorks(WorkQueue workQueue)
QueueingProcessor
cancelWorks in interface QueueingProcessorpublic void close()
QueueingProcessor
close in interface QueueingProcessorpublic static boolean isConfiguredAsSync(java.util.Properties properties)
properties - the configuration to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||