com.ibm.mq.jms
Class MQTopicSubscriber
- java.lang.Object
-
- com.ibm.mq.jms.MQRoot
-
- com.ibm.mq.jms.MQMessageConsumer
-
- com.ibm.mq.jms.MQTopicSubscriber
-
- All Implemented Interfaces:
- JmsMessageConsumer, JmsPropertyContext, JmsReadablePropertyContext, JmsTopicSubscriber, java.io.Serializable, java.lang.AutoCloseable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.MessageConsumer, javax.jms.TopicSubscriber
public class MQTopicSubscriber extends MQMessageConsumer implements javax.jms.TopicSubscriber, JmsTopicSubscriber
A client uses an MQTopicSubscriber object to receive messages that have been published to a topic.
-
-
Method Summary
Methods Modifier and Type Method and Description javax.jms.Topic
getTopic()
Gets the topic associated with this subscriber.-
Methods inherited from class com.ibm.mq.jms.MQMessageConsumer
close, getDestination, getMessageListener, getMessageSelector, getNoLocal, receive, receive, receiveNoWait, setMessageListener
-
Methods inherited from class com.ibm.mq.jms.MQRoot
clear, containsKey, containsValue, entrySet, equals, get, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, size, values
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.msg.client.jms.JmsMessageConsumer
getNoLocal
-
Methods inherited from interface com.ibm.msg.client.jms.JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
Methods inherited from interface com.ibm.msg.client.jms.JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists
-
-
-
-
Method Detail
-
getTopic
public javax.jms.Topic getTopic() throws javax.jms.JMSException
Gets the topic associated with this subscriber.- Specified by:
getTopic
in interfacejavax.jms.TopicSubscriber
- Returns:
- this subscriber's topic
- Throws:
javax.jms.JMSException
- if JMS fails to get topic for this topic subscriber due to some internal error.
-
-