Package org.apache.activemq.ra
Class InboundMessageProducerProxy
- java.lang.Object
-
- org.apache.activemq.ra.InboundMessageProducerProxy
-
- All Implemented Interfaces:
MessageProducer,QueueSender,TopicPublisher
public class InboundMessageProducerProxy extends Object implements MessageProducer, QueueSender, TopicPublisher
An implementation ofMessageProducerwhich uses the ActiveMQ JCA ResourceAdapter's current thread's JMSSessionto send messages.
-
-
Constructor Summary
Constructors Constructor Description InboundMessageProducerProxy(MessageProducer messageProducer, Destination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetDeliveryMode()DestinationgetDestination()booleangetDisableMessageID()booleangetDisableMessageTimestamp()intgetPriority()QueuegetQueue()longgetTimeToLive()TopicgetTopic()voidpublish(Message arg0)voidpublish(Message arg0, int arg1, int arg2, long arg3)voidpublish(Topic arg0, Message arg1)voidpublish(Topic arg0, Message arg1, int arg2, int arg3, long arg4)voidsend(Destination destination, Message message)voidsend(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)voidsend(Message message)voidsend(Message message, int deliveryMode, int priority, long timeToLive)voidsend(Queue arg0, Message arg1)voidsend(Queue arg0, Message arg1, int arg2, int arg3, long arg4)voidsetDeliveryMode(int i)voidsetDisableMessageID(boolean b)voidsetDisableMessageTimestamp(boolean b)voidsetPriority(int i)voidsetTimeToLive(long l)
-
-
-
Constructor Detail
-
InboundMessageProducerProxy
public InboundMessageProducerProxy(MessageProducer messageProducer, Destination destination) throws JMSException
- Throws:
JMSException
-
-
Method Detail
-
close
public void close() throws JMSException- Specified by:
closein interfaceMessageProducer- Throws:
JMSException
-
getDestination
public Destination getDestination() throws JMSException
- Specified by:
getDestinationin interfaceMessageProducer- Throws:
JMSException
-
getDeliveryMode
public int getDeliveryMode() throws JMSException- Specified by:
getDeliveryModein interfaceMessageProducer- Throws:
JMSException
-
getDisableMessageID
public boolean getDisableMessageID() throws JMSException- Specified by:
getDisableMessageIDin interfaceMessageProducer- Throws:
JMSException
-
getDisableMessageTimestamp
public boolean getDisableMessageTimestamp() throws JMSException- Specified by:
getDisableMessageTimestampin interfaceMessageProducer- Throws:
JMSException
-
getPriority
public int getPriority() throws JMSException- Specified by:
getPriorityin interfaceMessageProducer- Throws:
JMSException
-
getTimeToLive
public long getTimeToLive() throws JMSException- Specified by:
getTimeToLivein interfaceMessageProducer- Throws:
JMSException
-
send
public void send(Destination destination, Message message) throws JMSException
- Specified by:
sendin interfaceMessageProducer- Throws:
JMSException
-
send
public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
sendin interfaceMessageProducer- Throws:
JMSException
-
send
public void send(Message message) throws JMSException
- Specified by:
sendin interfaceMessageProducer- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
send
public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
- Specified by:
sendin interfaceMessageProducer- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
setDeliveryMode
public void setDeliveryMode(int i) throws JMSException- Specified by:
setDeliveryModein interfaceMessageProducer- Throws:
JMSException
-
setDisableMessageID
public void setDisableMessageID(boolean b) throws JMSException- Specified by:
setDisableMessageIDin interfaceMessageProducer- Throws:
JMSException
-
setDisableMessageTimestamp
public void setDisableMessageTimestamp(boolean b) throws JMSException- Specified by:
setDisableMessageTimestampin interfaceMessageProducer- Throws:
JMSException
-
setPriority
public void setPriority(int i) throws JMSException- Specified by:
setPriorityin interfaceMessageProducer- Throws:
JMSException
-
setTimeToLive
public void setTimeToLive(long l) throws JMSException- Specified by:
setTimeToLivein interfaceMessageProducer- Throws:
JMSException
-
getQueue
public Queue getQueue() throws JMSException
- Specified by:
getQueuein interfaceQueueSender- Throws:
JMSException
-
send
public void send(Queue arg0, Message arg1) throws JMSException
- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
send
public void send(Queue arg0, Message arg1, int arg2, int arg3, long arg4) throws JMSException
- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
getTopic
public Topic getTopic() throws JMSException
- Specified by:
getTopicin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Message arg0) throws JMSException
- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Message arg0, int arg1, int arg2, long arg3) throws JMSException
- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Topic arg0, Message arg1) throws JMSException
- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
publish
public void publish(Topic arg0, Message arg1, int arg2, int arg3, long arg4) throws JMSException
- Specified by:
publishin interfaceTopicPublisher- Throws:
JMSException
-
-