Class JmsPoolTopicSubscriber

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

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

    • JmsPoolTopicSubscriber

      public JmsPoolTopicSubscriber(JmsPoolSession session, javax.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 javax.jms.Topic getTopic() throws javax.jms.JMSException
      Specified by:
      getTopic in interface javax.jms.TopicSubscriber
      Throws:
      javax.jms.JMSException
    • getNoLocal

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

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

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