TopicSubscriber

 



public interface TopicSubscriber
extends MessageConsumer

WebSphere MQ class: MQTopicSubscriber



java.lang.Object
   |
   +----com.ibm.mq.jms.MQMessageConsumer
           |
           +----com.ibm.mq.jms.MQTopicSubscriber

A client uses a TopicSubscriber to receive messages that have been published to a topic. TopicSubscriber is the publish/subscribe variant of a JMS message consumer.

See also: MessageConsumer and TopicSession.createSubscriber

MQTopicSubscriber inherits the following methods from MQMessageConsumer:

close
getMessageListener
receive
receiveNoWait
setMessageListener

 

Methods

getNoLocal
public boolean getNoLocal() throws JMSException

Get the NoLocal attribute for this TopicSubscriber. The default value for this attribute is false.

Returns:
Set to true if locally-published messages are being inhibited.

Throws:
JMSException if JMS fails to get NoLocal attribute for this topic subscriber because of an internal error.

getTopic
public Topic getTopic() throws JMSException

Get the topic associated with this subscriber.

Returns:
This subscriber's topic.

Throws:
JMSException if JMS fails to get topic for this topic subscriber because of an internal error.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.