org.gcube.dataanalysis.executor.messagequeue
Class Producer

java.lang.Object
  extended by org.gcube.dataanalysis.executor.messagequeue.Producer

public class Producer
extends Object


Field Summary
 String identifier
           
 QueueManager manager
           
 javax.jms.MessageProducer producer
           
 String topic
           
 
Constructor Summary
Producer(QueueManager manager, String topic)
           
 
Method Summary
 void closeSession()
           
 void sendMessage(Object toSend, long timeToLive)
           
 void sendTextMessage(String text, long timeToLive)
           
 void standBy()
           
 void stop()
           
 void wake()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

producer

public javax.jms.MessageProducer producer

manager

public QueueManager manager

topic

public String topic

identifier

public String identifier
Constructor Detail

Producer

public Producer(QueueManager manager,
                String topic)
         throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

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.