Class OutboundTopicSession

  • All Implemented Interfaces:
    jakarta.jms.Session, jakarta.jms.TopicSession, AutoCloseable, Runnable

    public class OutboundTopicSession
    extends OutboundSession
    implements jakarta.jms.TopicSession
    An OutboundTopicSession instance wraps a JMS TopicSession (XA or not) for a component involved in PubSub outbound messaging.
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • OutboundTopicSession

        OutboundTopicSession​(jakarta.jms.Session sess,
                             OutboundConnection cnx)
        Constructs an OutboundTopicSession instance.
      • OutboundTopicSession

        OutboundTopicSession​(jakarta.jms.Session sess,
                             OutboundConnection cnx,
                             boolean transacted)
        Constructs an OutboundTopicSession instance.
    • Method Detail

      • createPublisher

        public jakarta.jms.TopicPublisher createPublisher​(jakarta.jms.Topic topic)
                                                   throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Specified by:
        createPublisher in interface jakarta.jms.TopicSession
        Throws:
        jakarta.jms.JMSException
      • createSubscriber

        public jakarta.jms.TopicSubscriber createSubscriber​(jakarta.jms.Topic topic,
                                                            String selector,
                                                            boolean noLocal)
                                                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Specified by:
        createSubscriber in interface jakarta.jms.TopicSession
        Throws:
        jakarta.jms.JMSException
      • createSubscriber

        public jakarta.jms.TopicSubscriber createSubscriber​(jakarta.jms.Topic topic)
                                                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Specified by:
        createSubscriber in interface jakarta.jms.TopicSession
        Throws:
        jakarta.jms.JMSException
      • createBrowser

        public jakarta.jms.QueueBrowser createBrowser​(jakarta.jms.Queue queue,
                                                      String selector)
                                               throws jakarta.jms.JMSException
        API method.
        Specified by:
        createBrowser in interface jakarta.jms.Session
        Overrides:
        createBrowser in class OutboundSession
        Throws:
        IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createBrowser

        public jakarta.jms.QueueBrowser createBrowser​(jakarta.jms.Queue queue)
                                               throws jakarta.jms.JMSException
        API method.
        Specified by:
        createBrowser in interface jakarta.jms.Session
        Overrides:
        createBrowser in class OutboundSession
        Throws:
        IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createQueue

        public jakarta.jms.Queue createQueue​(String queueName)
                                      throws jakarta.jms.JMSException
        API method.
        Specified by:
        createQueue in interface jakarta.jms.Session
        Overrides:
        createQueue in class OutboundSession
        Throws:
        IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createTemporaryQueue

        public jakarta.jms.TemporaryQueue createTemporaryQueue()
                                                        throws jakarta.jms.JMSException
        API method.
        Specified by:
        createTemporaryQueue in interface jakarta.jms.Session
        Overrides:
        createTemporaryQueue in class OutboundSession
        Throws:
        jIllegalStateException - Systematically.
        jakarta.jms.JMSException