public class JmsPoolTopicSubscriber extends JmsPoolMessageConsumer implements javax.jms.TopicSubscriber, AutoCloseable
TopicSubscriber
which was created by JmsPoolSession
.Constructor and Description |
---|
JmsPoolTopicSubscriber(JmsPoolSession session,
javax.jms.TopicSubscriber delegate)
Wraps the TopicSubscriber.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNoLocal() |
javax.jms.Topic |
getTopic() |
javax.jms.TopicSubscriber |
getTopicSubscriber() |
String |
toString() |
checkClosed, close, getDelegate, getMessageConsumer, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
public JmsPoolTopicSubscriber(JmsPoolSession session, javax.jms.TopicSubscriber delegate)
session
- the pooled session that created this object.delegate
- the created QueueBrowser to wrap.public javax.jms.Topic getTopic() throws javax.jms.JMSException
getTopic
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
public boolean getNoLocal() throws javax.jms.JMSException
getNoLocal
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
public String toString()
toString
in class JmsPoolMessageConsumer
public javax.jms.TopicSubscriber getTopicSubscriber() throws javax.jms.JMSException
javax.jms.JMSException
Copyright © 2017–2019. All rights reserved.