com.ibm.mq.jms

Class MQTopic

  • java.lang.Object
    • com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
      • com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
        • com.ibm.msg.client.jms.admin.JmsDestinationImpl
  • All Implemented Interfaces:
    com.ibm.jms.JMSDestination, JmsDestination, JmsPropertyContext, JmsReadablePropertyContext, JmsTopic, com.ibm.msg.client.provider.ProviderPropertyContextCallback, java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.Destination, javax.jms.Topic, javax.naming.Referenceable
    Direct Known Subclasses:
    MQTemporaryTopic


    public class MQTopic
    extends MQDestination
    implements javax.jms.Topic, JmsTopic, javax.naming.Referenceable, java.io.Serializable
    An MQTopic object encapsulates a provider-specific topic name.
    See Also:
    Serialized Form
    • Constructor Detail

      • MQTopic

        public MQTopic()
        Creates a new MQTopic object. Note that the topic name must be set before this topic is used.
      • MQTopic

        public MQTopic(java.lang.String topicName)
                throws javax.jms.JMSException
        Creates an MQTopic object from a uniform resource identifier (URI) formatted topic name.
        Parameters:
        topicName - URI formatted topic name
        Throws:
        javax.jms.JMSException - if the name is invalid
    • Method Detail

      • getBrokerCCDurSubQueue

        public java.lang.String getBrokerCCDurSubQueue()
        Gets the brokerCCDurSubQueue attribute.
        Returns:
        the broker's queue name for durable connection consumers
      • getBrokerDurSubQueue

        public java.lang.String getBrokerDurSubQueue()
        Gets the brokerDurSubQueue attribute.
        Returns:
        the broker's queue name for durable subscribers
      • getBrokerPubQueue

        public java.lang.String getBrokerPubQueue()
        Gets the broker's publish queue name.
        Returns:
        the broker's publish queue name
      • getBrokerPubQueueManager

        public java.lang.String getBrokerPubQueueManager()
        Gets the brokerQueueManager attribute.
        Returns:
        the broker's publish queue manager's name
      • getBrokerVersion

        public int getBrokerVersion()
        Gets the broker version.
        Returns:
        the version number
      • getMulticast

        public int getMulticast()
        Returns:
        the value of the multicast attribute. NO LONGER VALID
      • getTopicURI

        public java.lang.String getTopicURI()
        Gets the URI of this topic.

        Clients that depend upon the URI are not portable.

        Returns:
        the topic uri
      • getTopicName

        public java.lang.String getTopicName()
        Specified by:
        getTopicName in interface javax.jms.Topic
        Overrides:
        getTopicName in class com.ibm.msg.client.jms.admin.JmsDestinationImpl
        See Also:
        JmsDestinationImpl.getTopicName()
      • setBrokerCCDurSubQueue

        public void setBrokerCCDurSubQueue(java.lang.String queueName)
                                    throws javax.jms.JMSException
        Sets the name of the subscriber queue for consumers, using a durable connection to the broker.
        Parameters:
        queueName - the name of the queue
        Throws:
        javax.jms.JMSException - if name is either null or not valid
      • setBrokerDurSubQueue

        public void setBrokerDurSubQueue(java.lang.String queueName)
                                  throws javax.jms.JMSException
        Sets the brokerDurSubQueue attribute.
        Parameters:
        queueName - the name of the broker durable subscriber queue
        Throws:
        javax.jms.JMSException
      • setBrokerPubQueue

        public void setBrokerPubQueue(java.lang.String queueName)
                               throws javax.jms.JMSException
        Sets the broker publish queue attribute.
        Parameters:
        queueName - the name of the broker publish/subscribe queue. This string is trimmed to remove leading and trailing whitespace. If this string is empty following the trim operation, then the method behaves as if the supplied argument was null.
        Throws:
        javax.jms.JMSException - if the operation fails because of some internal error.
      • setBrokerPubQueueManager

        public void setBrokerPubQueueManager(java.lang.String queueManagerName)
                                      throws javax.jms.JMSException
        Sets the broker's queue manager.
        Parameters:
        queueManagerName - the name of the broker's queue manager to publish on.
        Throws:
        javax.jms.JMSException - if the command failed due to an internal error.
      • setBrokerVersion

        public void setBrokerVersion(int version)
                              throws javax.jms.JMSException
        Sets the broker version.
        Parameters:
        version - the version number. Valid numbers are:
        Throws:
        javax.jms.JMSException - if version is neither of the above.
      • setMulticast

        public void setMulticast(int multicastMode)
                          throws javax.jms.JMSException
        Sets the value of the multicast attribute. No longer valid
        Parameters:
        multicastMode -
        Throws:
        javax.jms.JMSException
      • toString

        public java.lang.String toString()
        toString returns the topic name
        Specified by:
        toString in interface javax.jms.Topic
        Overrides:
        toString in class com.ibm.msg.client.jms.admin.JmsDestinationImpl
        Returns:
        topic name as a URI
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.