public class JmsTopicSubscriber extends JmsMessageConsumer implements TopicSubscriber
Constructor and Description |
---|
JmsTopicSubscriber(TopicSubscriber consumer,
JmsSession session)
Create a new wrapper
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNoLocal()
Gets the
NoLocal attribute for this subscriber. |
Topic |
getTopic()
Gets the
Topic associated with this subscriber. |
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
public JmsTopicSubscriber(TopicSubscriber consumer, JmsSession session)
consumer
- the topic subscribersession
- the sessionpublic boolean getNoLocal() throws JMSException
TopicSubscriber
NoLocal
attribute for this subscriber.
The default value for this attribute is false.getNoLocal
in interface TopicSubscriber
JMSException
- if the JMS provider fails to get the
NoLocal
attribute for
this topic subscriber
due to some internal error.public Topic getTopic() throws JMSException
TopicSubscriber
Topic
associated with this subscriber.getTopic
in interface TopicSubscriber
Topic
JMSException
- if the JMS provider fails to get the topic for
this topic subscriber
due to some internal error.Copyright © 2018 JBoss by Red Hat. All rights reserved.