org.hibernate.search.backend.impl
Class BatchLuceneWorkQueue
java.lang.Object
org.hibernate.search.backend.impl.BatchLuceneWorkQueue
- All Implemented Interfaces:
- WorkQueue
public class BatchLuceneWorkQueue
- extends Object
- implements WorkQueue
- Author:
- Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchLuceneWorkQueue
public BatchLuceneWorkQueue(Map<Class,DocumentBuilder<Object>> documentBuilders,
Map<DirectoryProvider,java.util.concurrent.locks.ReentrantLock> lockableDirectoryProviders)
add
public void add(Work work)
- Description copied from interface:
WorkQueue
- Add a work
- Specified by:
add
in interface WorkQueue
performWork
public void performWork()
- Description copied from interface:
WorkQueue
- Execute works
- Specified by:
performWork
in interface WorkQueue
cancelWork
public void cancelWork()
- Description copied from interface:
WorkQueue
- Rollback works
- Specified by:
cancelWork
in interface WorkQueue