Class OutboundSender

  • All Implemented Interfaces:
    jakarta.jms.MessageProducer, jakarta.jms.QueueSender, AutoCloseable

    public class OutboundSender
    extends OutboundProducer
    implements jakarta.jms.QueueSender
    An OutboundSender instance wraps a JMS producer for a component involved in PTP outbound messaging.
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • OutboundSender

        OutboundSender​(jakarta.jms.MessageProducer producer,
                       OutboundSession session)
        Constructs an OutboundSender instance.
    • Method Detail

      • getQueue

        public jakarta.jms.Queue getQueue()
                                   throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        getQueue in interface jakarta.jms.QueueSender
        Throws:
        jakarta.jms.JMSException
      • send

        public void send​(jakarta.jms.Queue queue,
                         jakarta.jms.Message message,
                         int deliveryMode,
                         int priority,
                         long timeToLive)
                  throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        send in interface jakarta.jms.QueueSender
        Throws:
        jakarta.jms.JMSException
      • send

        public void send​(jakarta.jms.Queue queue,
                         jakarta.jms.Message message)
                  throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        send in interface jakarta.jms.QueueSender
        Throws:
        jakarta.jms.JMSException