Class JmsPoolTopicSubscriber

java.lang.Object
org.messaginghub.pooled.jms.JmsPoolMessageConsumer
org.messaginghub.pooled.jms.JmsPoolTopicSubscriber
All Implemented Interfaces:
jakarta.jms.MessageConsumer, jakarta.jms.TopicSubscriber, AutoCloseable

public class JmsPoolTopicSubscriber extends JmsPoolMessageConsumer implements jakarta.jms.TopicSubscriber, AutoCloseable
A TopicSubscriber which was created by JmsPoolSession.
  • Constructor Details

    • JmsPoolTopicSubscriber

      public JmsPoolTopicSubscriber(JmsPoolSession session, jakarta.jms.TopicSubscriber delegate)
      Wraps the TopicSubscriber.
      Parameters:
      session - the pooled session that created this object.
      delegate - the created QueueBrowser to wrap.
  • Method Details

    • getTopic

      public jakarta.jms.Topic getTopic() throws jakarta.jms.JMSException
      Specified by:
      getTopic in interface jakarta.jms.TopicSubscriber
      Throws:
      jakarta.jms.JMSException
    • getNoLocal

      public boolean getNoLocal() throws jakarta.jms.JMSException
      Specified by:
      getNoLocal in interface jakarta.jms.TopicSubscriber
      Throws:
      jakarta.jms.JMSException
    • toString

      public String toString()
      Overrides:
      toString in class JmsPoolMessageConsumer
    • getTopicSubscriber

      public jakarta.jms.TopicSubscriber getTopicSubscriber() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException