org.hibernate.search.backend.impl.jms
Class JMSBackendQueueProcessorFactory
java.lang.Object
org.hibernate.search.backend.impl.jms.JMSBackendQueueProcessorFactory
- All Implemented Interfaces:
- BackendQueueProcessorFactory
public class JMSBackendQueueProcessorFactory
- extends java.lang.Object
- implements BackendQueueProcessorFactory
- Author:
- Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMS_CONNECTION_FACTORY
public static final java.lang.String JMS_CONNECTION_FACTORY
- See Also:
- Constant Field Values
JMS_QUEUE
public static final java.lang.String JMS_QUEUE
- See Also:
- Constant Field Values
JMSBackendQueueProcessorFactory
public JMSBackendQueueProcessorFactory()
initialize
public void initialize(java.util.Properties props,
SearchFactoryImplementor searchFactoryImplementor)
- Description copied from interface:
BackendQueueProcessorFactory
- Used at startup, called once as first method.
- Specified by:
initialize
in interface BackendQueueProcessorFactory
- Parameters:
props
- all configuration propertiessearchFactoryImplementor
- the client
getProcessor
public java.lang.Runnable getProcessor(java.util.List<LuceneWork> queue)
- Description copied from interface:
BackendQueueProcessorFactory
- Return a runnable implementation responsible for processing the queue to a given backend.
- Specified by:
getProcessor
in interface BackendQueueProcessorFactory
- Parameters:
queue
- The work queue to process.
- Returns:
Runnable
which processes queue
when started.
getJMSFactory
public javax.jms.QueueConnectionFactory getJMSFactory()
getJmsQueue
public javax.jms.Queue getJmsQueue()
getJmsQueueName
public java.lang.String getJmsQueueName()
prepareJMSTools
public void prepareJMSTools()
close
public void close()
- Description copied from interface:
BackendQueueProcessorFactory
- Used to shutdown and eventually release resources.
No other method should be used after this one.
- Specified by:
close
in interface BackendQueueProcessorFactory
Copyright © 2006-2010 Hibernate. All Rights Reserved.