54.3. Methods
The TopicSubscriber interface inherits the methods of the interface javax.jms.MessageConsumer. The following methods are defined in the interface javax.jms.TopicSubscriber.
getNoLocal
public boolean getNoLocal()
Gets the NoLocal attribute for this subscriber. The default value for this attribute is false.
RETURNS:
true if locally published messages are being inhibited
THROWS:
JMSException if the JMS provider fails to get the NoLocal attribute for this topic subscriber due to some internal error
getTopic
public Topic getTopic()
Gets the Topic associated with this subscriber.
RETURNS:
this subscriber's Topic
THROWS:
JMSException if the JMS provider fails to get the topic for this topic subscriber due to some internal error
Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.