Package org.messaginghub.pooled.jms
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
ATopicSubscriber
which was created byJmsPoolSession
.
-
-
Constructor Summary
Constructors Constructor Description JmsPoolTopicSubscriber(JmsPoolSession session, javax.jms.TopicSubscriber delegate)
Wraps the TopicSubscriber.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getNoLocal()
javax.jms.Topic
getTopic()
javax.jms.TopicSubscriber
getTopicSubscriber()
String
toString()
-
Methods inherited from class org.messaginghub.pooled.jms.JmsPoolMessageConsumer
checkClosed, close, getDelegate, getMessageConsumer, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
-
-
-
-
Constructor Detail
-
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 Detail
-
getTopic
public javax.jms.Topic getTopic() throws javax.jms.JMSException
- Specified by:
getTopic
in interfacejavax.jms.TopicSubscriber
- Throws:
javax.jms.JMSException
-
getNoLocal
public boolean getNoLocal() throws javax.jms.JMSException
- Specified by:
getNoLocal
in interfacejavax.jms.TopicSubscriber
- Throws:
javax.jms.JMSException
-
toString
public String toString()
- Overrides:
toString
in classJmsPoolMessageConsumer
-
getTopicSubscriber
public javax.jms.TopicSubscriber getTopicSubscriber() throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-