Save This Page
Home » hibernate-search-src-20081106 » org.hibernate » search » backend » impl » [javadoc | source]
org.hibernate.search.backend.impl
public class: TransactionalWorker [javadoc | source]
java.lang.Object
   org.hibernate.search.backend.impl.TransactionalWorker

All Implemented Interfaces:
    Worker

Queue works per transaction. If out of transaction, the work is executed right away

When hibernate.search.worker.type is set to async the work is done in a separate thread (threads are pooled)

Field Summary
protected final  WeakIdentityHashMap synchronizationPerTransaction     
Method from org.hibernate.search.backend.impl.TransactionalWorker Summary:
close,   flushWorks,   initialize,   performWork
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.search.backend.impl.TransactionalWorker Detail:
 public  void close() 
 public  void flushWorks(TransactionContext transactionContext) 
 public  void initialize(Properties props,
    SearchFactoryImplementor searchFactory) 
 public  void performWork(Work work,
    TransactionContext transactionContext)