Class OutboundSender
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundProducer
-
- org.objectweb.joram.client.connector.OutboundSender
-
- All Implemented Interfaces:
AutoCloseable,MessageProducer,QueueSender
public class OutboundSender extends OutboundProducer implements QueueSender
AnOutboundSenderinstance wraps a JMS producer for a component involved in PTP outbound messaging.
-
-
Constructor Summary
Constructors Constructor Description OutboundSender(MessageProducer producer, OutboundSession session)Constructs anOutboundSenderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueuegetQueue()Delegates the call to the wrapped producer.voidsend(Queue queue, Message message)Delegates the call to the wrapped producer.voidsend(Queue queue, Message message, int deliveryMode, int priority, long timeToLive)Delegates the call to the wrapped producer.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundProducer
checkValidity, close, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jms.MessageProducer
close, getDeliveryDelay, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, send, send, setDeliveryDelay, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
-
Methods inherited from interface javax.jms.QueueSender
send, send
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundSender
OutboundSender(MessageProducer producer, OutboundSession session)
Constructs anOutboundSenderinstance.
-
-
Method Detail
-
getQueue
public Queue getQueue() throws JMSException
Delegates the call to the wrapped producer.- Specified by:
getQueuein interfaceQueueSender- Throws:
JMSException
-
send
public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
send
public void send(Queue queue, Message message) throws JMSException
Delegates the call to the wrapped producer.- Specified by:
sendin interfaceQueueSender- Throws:
JMSException
-
-