org.gcube.dataanalysis.executor.messagequeue
Class Producer
java.lang.Object
org.gcube.dataanalysis.executor.messagequeue.Producer
public class Producer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
producer
public javax.jms.MessageProducer producer
manager
public QueueManager manager
topic
public String topic
identifier
public String identifier
Producer
public Producer(QueueManager manager,
String topic)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
sendTextMessage
public void sendTextMessage(String text,
long timeToLive)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
sendMessage
public void sendMessage(Object toSend,
long timeToLive)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
standBy
public void standBy()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
wake
public void wake()
throws Exception
- Throws:
Exception
stop
public void stop()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
closeSession
public void closeSession()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
Copyright © 2012. All Rights Reserved.