|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.backend.impl.lucene.LuceneBackendQueueProcessorFactory
public class LuceneBackendQueueProcessorFactory
This will actually contain the Workspace and LuceneWork visitor implementation, reused per-DirectoryProvider. Both Workspace(s) and LuceneWorkVisitor(s) lifecycle are linked to the backend lifecycle (reused and shared by all transactions). The LuceneWorkVisitor(s) are stateless, the Workspace(s) are threadsafe.
| Constructor Summary | |
|---|---|
LuceneBackendQueueProcessorFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
Used to shutdown and eventually release resources. |
java.lang.Runnable |
getProcessor(java.util.List<LuceneWork> queue)
Return a runnable implementation responsible for processing the queue to a given backend. |
void |
initialize(java.util.Properties props,
SearchFactoryImplementor searchFactoryImplementor)
Used at startup, called once as first method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneBackendQueueProcessorFactory()
| Method Detail |
|---|
public void initialize(java.util.Properties props,
SearchFactoryImplementor searchFactoryImplementor)
BackendQueueProcessorFactory
initialize in interface BackendQueueProcessorFactoryprops - all configuration propertiessearchFactoryImplementor - the clientpublic java.lang.Runnable getProcessor(java.util.List<LuceneWork> queue)
BackendQueueProcessorFactory
getProcessor in interface BackendQueueProcessorFactoryqueue - The work queue to process.
Runnable which processes queue when started.public void close()
BackendQueueProcessorFactory
close in interface BackendQueueProcessorFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||