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 Connection
connection
protected MessageProducer
producer
-
Constructor Summary
Constructors Constructor Description MemProducer(ConnectionFactory fac, Destination dest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendMessage(Message msg)
void
sendMessage(Message msg, String headerName, long headerValue)
void
setDeliveryMode(int mode)
void
shutDown()
void
start()
void
stop()
-
-
-
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
-
-