Class JmsPoolTopicPublisher

java.lang.Object
org.messaginghub.pooled.jms.JmsPoolMessageProducer
org.messaginghub.pooled.jms.JmsPoolTopicPublisher
All Implemented Interfaces:
jakarta.jms.MessageProducer, jakarta.jms.TopicPublisher, AutoCloseable

public class JmsPoolTopicPublisher extends JmsPoolMessageProducer implements jakarta.jms.TopicPublisher, AutoCloseable
A TopicPublisher instance that is created and managed by a PooledConnection.
  • Constructor Details

    • JmsPoolTopicPublisher

      public JmsPoolTopicPublisher(JmsPoolSession session, jakarta.jms.TopicPublisher messageProducer, jakarta.jms.Destination destination, AtomicInteger refCount) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
  • Method Details

    • 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) throws jakarta.jms.JMSException
      Specified by:
      publish 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.Topic topic, 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 topic, 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
    • toString

      public String toString()
      Overrides:
      toString in class JmsPoolMessageProducer
    • getTopicPublisher

      public jakarta.jms.TopicPublisher getTopicPublisher() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException