Package org.apache.activemq.tool
Class MemProducer
- java.lang.Object
-
- org.apache.activemq.tool.MemProducer
-
public class MemProducer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Connectionconnectionprotected MessageProducerproducer
-
Constructor Summary
Constructors Constructor Description MemProducer(ConnectionFactory fac, Destination dest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendMessage(Message msg)voidsendMessage(Message msg, String headerName, long headerValue)voidsetDeliveryMode(int mode)voidshutDown()voidstart()voidstop()
-
-
-
Field Detail
-
connection
protected Connection connection
-
producer
protected MessageProducer producer
-
-
Constructor Detail
-
MemProducer
public MemProducer(ConnectionFactory fac, Destination dest) throws JMSException
- Throws:
JMSException
-
-
Method Detail
-
setDeliveryMode
public void setDeliveryMode(int mode) throws JMSException- Throws:
JMSException
-
start
public void start() throws JMSException- Throws:
JMSException
-
stop
public void stop() throws JMSException- Throws:
JMSException
-
shutDown
public void shutDown() throws JMSException- Throws:
JMSException
-
sendMessage
public void sendMessage(Message msg) throws JMSException
- Throws:
JMSException
-
sendMessage
public void sendMessage(Message msg, String headerName, long headerValue) throws JMSException
- Throws:
JMSException
-
-