Package org.apache.activemq.artemis.ra
Class ActiveMQRATopicSubscriber
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAMessageConsumer
-
- org.apache.activemq.artemis.ra.ActiveMQRATopicSubscriber
-
- All Implemented Interfaces:
jakarta.jms.MessageConsumer,jakarta.jms.TopicSubscriber,AutoCloseable
public class ActiveMQRATopicSubscriber extends ActiveMQRAMessageConsumer implements jakarta.jms.TopicSubscriber
A wrapper for a topic subscriber
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessageConsumer
consumer, session
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRATopicSubscriber(jakarta.jms.TopicSubscriber consumer, ActiveMQRASession session)Create a new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetNoLocal()Get the no local valuejakarta.jms.TopicgetTopic()Get the topic-
Methods inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessageConsumer
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
-
-
-
-
Constructor Detail
-
ActiveMQRATopicSubscriber
public ActiveMQRATopicSubscriber(jakarta.jms.TopicSubscriber consumer, ActiveMQRASession session)Create a new wrapper- Parameters:
consumer- the topic subscribersession- the session
-
-
Method Detail
-
getNoLocal
public boolean getNoLocal() throws jakarta.jms.JMSExceptionGet the no local value- Specified by:
getNoLocalin interfacejakarta.jms.TopicSubscriber- Returns:
- The value
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
getTopic
public jakarta.jms.Topic getTopic() throws jakarta.jms.JMSExceptionGet the topic- Specified by:
getTopicin interfacejakarta.jms.TopicSubscriber- Returns:
- The topic
- Throws:
jakarta.jms.JMSException- Thrown if an error occurs
-
-