Class TibjmsUFOTopic

  • java.lang.Object
    • com.tibco.tibems.ufo.TibjmsUFODestination
      • com.tibco.tibems.ufo.TibjmsUFOTopic
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Destination, Topic

    public class TibjmsUFOTopic
    extends com.tibco.tibems.ufo.TibjmsUFODestination
    implements Topic, java.lang.Cloneable
    Implementation of javax.jms.Topic which can be used for administrative purposes.

    Normally EMS applications look up Topic objects via JNDI calls. This class can be used by the administrator application if it is required to store TibjmsUFOTopic objects in the 3rd party JNDI store such as LDAP or similar.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TibjmsUFOTopic()
      Constructs a new TibjmsUFOTopic object.
      TibjmsUFOTopic​(TibjmsTopic topic)
      Constructs a new TibjmsUFOTopic object with the given TibjmsTopic object.
      TibjmsUFOTopic​(java.lang.String address)
      Constructs a new TibjmsUFOTopic object with the given address.
      TibjmsUFOTopic​(java.lang.String address, java.lang.String jndiName)
      Internal constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      java.lang.String getAddress()
      Gets the address of this topic.
      java.lang.String getTopicName()
      Gets the name of this topic.
      void setAddress​(java.lang.String address)
      Sets the address of this topic.
      • Methods inherited from class com.tibco.tibems.ufo.TibjmsUFODestination

        equals, getJMSDestination, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TibjmsUFOTopic

        public TibjmsUFOTopic()
        Constructs a new TibjmsUFOTopic object.
      • TibjmsUFOTopic

        public TibjmsUFOTopic​(java.lang.String address)
        Constructs a new TibjmsUFOTopic object with the given address.
        Parameters:
        address - address of the topic
      • TibjmsUFOTopic

        public TibjmsUFOTopic​(java.lang.String address,
                              java.lang.String jndiName)
        Internal constructor.
      • TibjmsUFOTopic

        public TibjmsUFOTopic​(TibjmsTopic topic)
        Constructs a new TibjmsUFOTopic object with the given TibjmsTopic object.
        Parameters:
        topic - object of TibjmsTopic
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class com.tibco.tibems.ufo.TibjmsUFODestination
        Throws:
        java.lang.CloneNotSupportedException
      • getTopicName

        public java.lang.String getTopicName()
                                      throws JMSException
        Description copied from interface: Topic
        Gets the name of this topic.

        Clients that depend upon the name are not portable.

        Specified by:
        getTopicName in interface Topic
        Returns:
        the topic name
        Throws:
        JMSException - if the Jakarta Messaging provider implementation of Topic fails to return the topic name due to some internal error.
      • getAddress

        public java.lang.String getAddress()
        Gets the address of this topic. Address and name are synonyms.
        Overrides:
        getAddress in class com.tibco.tibems.ufo.TibjmsUFODestination
        Returns:
        the topic's address
      • setAddress

        public void setAddress​(java.lang.String address)
                        throws JMSException
        Sets the address of this topic. Address and name are synonyms.

        Example:

        TibjmsUFOTopic topic = new TibjmsUFOTopic();
        topic.setAddress("topic.sample");
        Overrides:
        setAddress in class com.tibco.tibems.ufo.TibjmsUFODestination
        Parameters:
        address - the string representing the address, or name, of this topic
        Throws:
        JMSException - if the address has already been set