Class JmsTopicPublisher

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

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

      • JmsTopicPublisher

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

      • getTopic

        public javax.jms.Topic getTopic()
                                 throws javax.jms.JMSException
        Specified by:
        getTopic in interface javax.jms.TopicPublisher
        Throws:
        javax.jms.JMSException
      • publish

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

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

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

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