Class ActiveMQRATopicPublisher

  • All Implemented Interfaces:
    java.lang.AutoCloseable, javax.jms.MessageProducer, javax.jms.TopicPublisher

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

      • ActiveMQRATopicPublisher

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

      • getTopic

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

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

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

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

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