|
||||||||||
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. |
Runnable |
getProcessor(List<LuceneWork> queue)
Return a runnable implementation responsible for processing the queue to a given backend. |
void |
initialize(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(Properties props, SearchFactoryImplementor searchFactoryImplementor)
BackendQueueProcessorFactory
initialize
in interface BackendQueueProcessorFactory
props
- all configuration propertiessearchFactoryImplementor
- the clientpublic Runnable getProcessor(List<LuceneWork> queue)
BackendQueueProcessorFactory
getProcessor
in interface BackendQueueProcessorFactory
queue
- 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 |