Class JmsPoolTopicPublisher

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

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

    • JmsPoolTopicPublisher

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

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

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

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