Package org.hibernate.search.backend
Interface BackendQueueProcessorFactory
- All Known Subinterfaces:
UpdatableBackendQueueProcessorFactory
- All Known Implementing Classes:
BlackHoleBackendQueueProcessorFactory,JGroupsBackendQueueProcessorFactory,JMSBackendQueueProcessorFactory,LuceneBackendQueueProcessorFactory,MasterJGroupsBackendQueueProcessorFactory,SlaveJGroupsBackendQueueProcessorFactory
public interface BackendQueueProcessorFactory
Interface for different types of queue processor factories. Implementations need a no-arg constructor.
The factory typically prepares or pools the resources needed by the queue processor.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Used to shutdown and eventually release resources.getProcessor(List<LuceneWork> queue) Return a runnable implementation responsible for processing the queue to a given backend.voidinitialize(Properties props, WorkerBuildContext context) Used at startup, called once as first method.
-
Method Details
-
initialize
Used at startup, called once as first method.- Parameters:
props- all configuration propertiescontext- context giving access to required meta data
-
getProcessor
Return a runnable implementation responsible for processing the queue to a given backend.- Parameters:
queue- The work queue to process.- Returns:
Runnablewhich processesqueuewhen started.
-
close
void close()Used to shutdown and eventually release resources. No other method should be used after this one.
-