Save This Page
Home » hibernate-search-src-20081106 » org.hibernate » search » backend » [javadoc | source]
org.hibernate.search.backend
public interface: QueueingProcessor [javadoc | source]

All Known Implementing Classes:
    BatchedQueueingProcessor

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 from org.hibernate.search.backend.QueueingProcessor Summary:
add,   cancelWorks,   close,   performWorks,   prepareWorks
Method from org.hibernate.search.backend.QueueingProcessor Detail:
 public  void add(Work work,
    WorkQueue workQueue)
    Add a work TODO move that somewhere else, it does not really fit here
 public  void cancelWorks(WorkQueue workQueue)
    Rollback works
 public  void close()
    clean resources This method should log errors rather than raise an exception
 public  void performWorks(WorkQueue workQueue)
    Execute works
 public  void prepareWorks(WorkQueue workQueue)
    prepare resources for a later performWorks call