Class BatchedQueueingProcessor
java.lang.Object
org.hibernate.search.backend.impl.BatchedQueueingProcessor
- All Implemented Interfaces:
QueueingProcessor
Batch work until
performWorks(org.hibernate.search.backend.WorkQueue) is called.
The work is then executed synchronously or asynchronously.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a work TODO move that somewhere else, it does not really fit herevoidcancelWorks(WorkQueue workQueue) Rollback worksvoidclose()clean resources This method should log errors rather than raise an exceptionstatic booleanisConfiguredAsSync(Properties properties) voidperformWorks(WorkQueue workQueue) Execute worksvoidprepareWorks(WorkQueue workQueue) prepare resources for a later performWorks call
-
Constructor Details
-
BatchedQueueingProcessor
-
-
Method Details
-
add
Description copied from interface:QueueingProcessorAdd a work TODO move that somewhere else, it does not really fit here- Specified by:
addin interfaceQueueingProcessor
-
prepareWorks
Description copied from interface:QueueingProcessorprepare resources for a later performWorks call- Specified by:
prepareWorksin interfaceQueueingProcessor
-
performWorks
Description copied from interface:QueueingProcessorExecute works- Specified by:
performWorksin interfaceQueueingProcessor
-
cancelWorks
Description copied from interface:QueueingProcessorRollback works- Specified by:
cancelWorksin interfaceQueueingProcessor
-
close
public void close()Description copied from interface:QueueingProcessorclean resources This method should log errors rather than raise an exception- Specified by:
closein interfaceQueueingProcessor
-
isConfiguredAsSync
- Parameters:
properties- the configuration to parse- Returns:
- true if the configuration uses sync indexing
-