public class SolrWrapperQueueConsumer extends Object implements com.googlecode.fascinator.common.messaging.GenericListener
| Constructor and Description |
|---|
SolrWrapperQueueConsumer()
Constructor required by ServiceLoader.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Return the ID string for this listener
|
void |
init(com.googlecode.fascinator.common.JsonSimpleConfig config)
Initialization method
|
void |
onMessage(javax.jms.Message message)
Callback function for incoming messages.
|
void |
run()
Start thread running
|
void |
setPriority(int newPriority)
Sets the priority level for the thread.
|
void |
start()
Start the queue based on the name identifier
|
void |
stop()
Stop the Render Queue Consumer.
|
public static final String QUEUE_ID
public SolrWrapperQueueConsumer()
public void init(com.googlecode.fascinator.common.JsonSimpleConfig config)
throws Exception
init in interface com.googlecode.fascinator.common.messaging.GenericListenerconfig - Configuration to useException - if any errors occurpublic String getId()
getId in interface com.googlecode.fascinator.common.messaging.GenericListenerpublic void start()
throws Exception
start in interface com.googlecode.fascinator.common.messaging.GenericListenerjavax.jms.JMSException - if an error occurred starting the JMS connectionsExceptionpublic void stop()
throws Exception
stop in interface com.googlecode.fascinator.common.messaging.GenericListenerExceptionpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - The incoming messagepublic void setPriority(int newPriority)
setPriority in interface com.googlecode.fascinator.common.messaging.GenericListenernewPriority - The priority level to set the thread atCopyright © 2009-2015. All Rights Reserved.