Class ActiveMQRATopicPublisher

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

    public class ActiveMQRATopicPublisher
    extends ActiveMQRAMessageProducer
    implements jakarta.jms.TopicPublisher
    ActiveMQQueueSender.
    • Constructor Detail

      • ActiveMQRATopicPublisher

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

      • getTopic

        public jakarta.jms.Topic getTopic()
                                   throws jakarta.jms.JMSException
        Get the topic
        Specified by:
        getTopic in interface jakarta.jms.TopicPublisher
        Returns:
        The topic
        Throws:
        jakarta.jms.JMSException - Thrown if an error occurs
      • publish

        public void publish​(jakarta.jms.Message message,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws jakarta.jms.JMSException
        Publish message
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Parameters:
        message - The message
        deliveryMode - The delivery mode
        priority - The priority
        timeToLive - The time to live
        Throws:
        jakarta.jms.JMSException - Thrown if an error occurs
      • publish

        public void publish​(jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Publish message
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Parameters:
        message - The message
        Throws:
        jakarta.jms.JMSException - Thrown if an error occurs
      • publish

        public void publish​(jakarta.jms.Topic destination,
                            jakarta.jms.Message message,
                            int deliveryMode,
                            int priority,
                            long timeToLive)
                     throws jakarta.jms.JMSException
        Publish message
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Parameters:
        destination - The destination
        message - The message
        deliveryMode - The delivery mode
        priority - The priority
        timeToLive - The time to live
        Throws:
        jakarta.jms.JMSException - Thrown if an error occurs
      • publish

        public void publish​(jakarta.jms.Topic destination,
                            jakarta.jms.Message message)
                     throws jakarta.jms.JMSException
        Publish message
        Specified by:
        publish in interface jakarta.jms.TopicPublisher
        Parameters:
        destination - The destination
        message - The message
        Throws:
        jakarta.jms.JMSException - Thrown if an error occurs