Package org.hibernate.search.backend
Interface QueueingProcessor
- All Known Implementing Classes:
BatchedQueueingProcessor
public interface QueueingProcessor
Pile work operations
No thread safety has to be implemented, the queue being scoped already
The implementation must be "stateless" wrt the queue through (ie not store the queue state)
FIXME this Interface does not make much sense, since the impl will not be changed
-
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 exceptionvoidperformWorks(WorkQueue workQueue) Execute worksvoidprepareWorks(WorkQueue workQueue) prepare resources for a later performWorks call
-
Method Details
-
add
Add a work TODO move that somewhere else, it does not really fit here -
prepareWorks
prepare resources for a later performWorks call -
performWorks
Execute works -
cancelWorks
Rollback works -
close
void close()clean resources This method should log errors rather than raise an exception
-