org.hibernate.search.backend
Interface BackendQueueProcessorFactory

All Known Implementing Classes:
JMSBackendQueueProcessorFactory, LuceneBackendQueueProcessorFactory

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.

Author:
Emmanuel Bernard

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 searchFactory)
          Used at startup, called once as first method.
 

Method Detail

initialize

void initialize(Properties props,
                SearchFactoryImplementor searchFactory)
Used at startup, called once as first method.

Parameters:
props - all configuration properties
searchFactory - the client

getProcessor

Runnable getProcessor(List<LuceneWork> queue)
Return a runnable implementation responsible for processing the queue to a given backend.

Parameters:
queue - The work queue to process.
Returns:
Runnable which processes queue when started.

close

void close()
Used to shutdown and eventually release resources. no other method should used after this one.



Copyright © 2011 Hibernate. All Rights Reserved.