Class JmsTopicPublisher

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

    public class JmsTopicPublisher
    extends JmsMessageProducer
    implements jakarta.jms.TopicPublisher
    JmsQueueSender.
    Author:
    Adrian Brock
    • Constructor Detail

      • JmsTopicPublisher

        public JmsTopicPublisher​(jakarta.jms.TopicPublisher producer,
                                 JmsSession session)
        Create a new wrapper
        Parameters:
        producer - the producer
        session - the session
    • Method Detail

      • getTopic

        public jakarta.jms.Topic getTopic()
                                   throws jakarta.jms.JMSException
        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
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

        public void publish​(jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

        public void publish​(jakarta.jms.Topic destination,
                            jakarta.jms.Message message,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws jakarta.jms.JMSException
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException
      • publish

        public void publish​(jakarta.jms.Topic destination,
                            jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Throws:
        jakarta.jms.JMSException