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:
MessageConsumer,TopicSubscriber,AutoCloseable
A wrapper for a
TopicSubscriber.-
Field Summary
Fields inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessageConsumer
consumer, session -
Constructor Summary
ConstructorsConstructorDescriptionActiveMQRATopicSubscriber(TopicSubscriber consumer, ActiveMQRASession session) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets theNoLocalattribute for this subscriber.getTopic()Gets theTopicassociated with this subscriber.Methods inherited from class org.apache.activemq.artemis.ra.ActiveMQRAMessageConsumer
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.jms.MessageConsumer
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
-
Constructor Details
-
ActiveMQRATopicSubscriber
-
-
Method Details
-
getNoLocal
Gets theNoLocalattribute for this subscriber. The default value for this attribute is false.- Specified by:
getNoLocalin interfaceTopicSubscriber- Returns:
- true if locally published messages are being inhibited
- Throws:
JMSException- if the Jakarta Messaging provider fails to get theNoLocalattribute for this topic subscriber due to some internal error.
-
getTopic
Gets theTopicassociated with this subscriber.- Specified by:
getTopicin interfaceTopicSubscriber- Returns:
- this subscriber's
Topic - Throws:
JMSException- if the Jakarta Messaging provider fails to get the topic for this topic subscriber due to some internal error.
-