Class OutboundPublisher

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

    public class OutboundPublisher
    extends OutboundProducer
    implements jakarta.jms.TopicPublisher
    An OutboundPublisher instance wraps a JMS producer for a component involved in PubSub outbound messaging.
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • OutboundPublisher

        OutboundPublisher​(jakarta.jms.MessageProducer producer,
                          OutboundSession session)
        Constructs an OutboundPublisher instance.
        Parameters:
        producer - The JMS producer to wrap.
        session - The OutboundSession the publisher belongs to.
    • Method Detail

      • getTopic

        public jakarta.jms.Topic getTopic()
                                   throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        getTopic in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

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

        public void publish​(jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

        public void publish​(jakarta.jms.Topic topic,
                            jakarta.jms.Message message,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

        public void publish​(jakarta.jms.Topic topic,
                            jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped producer.
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException