Class TopicImpl

  • All Implemented Interfaces:
    DestinationImpl, java.io.Serializable, javax.jms.Destination, javax.jms.Queue, javax.jms.Topic, javax.naming.Referenceable
    Direct Known Subclasses:
    TemporaryTopicImpl

    public class TopicImpl
    extends QueueImpl
    implements javax.jms.Topic
    Implementation of a Topic.
    Author:
    IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicImpl()
      Creates a new TopicImpl.
      TopicImpl​(java.lang.String topicName)
      Creates a new TopicImpl.
      TopicImpl​(java.lang.String queueName, java.lang.String topicName)
      Creates a new TopicImpl.
    • Constructor Detail

      • TopicImpl

        public TopicImpl​(java.lang.String topicName)
        Creates a new TopicImpl.
        Parameters:
        topicName - topic name.
      • TopicImpl

        public TopicImpl​(java.lang.String queueName,
                         java.lang.String topicName)
        Creates a new TopicImpl.
        Parameters:
        queueName - name of the topic queue.
        topicName - topic name.
      • TopicImpl

        public TopicImpl()
        Creates a new TopicImpl.
    • Method Detail

      • getReference

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        Specified by:
        getReference in interface javax.naming.Referenceable
        Overrides:
        getReference in class QueueImpl
        Throws:
        javax.naming.NamingException
      • getTopicName

        public java.lang.String getTopicName()
                                      throws javax.jms.JMSException
        Specified by:
        getTopicName in interface javax.jms.Topic
        Throws:
        javax.jms.JMSException
      • setTopicName

        public void setTopicName​(java.lang.String topicName)
      • toString

        public java.lang.String toString()
        Description copied from class: QueueImpl
        Return a pretty printed version of the queue name
        Specified by:
        toString in interface javax.jms.Queue
        Specified by:
        toString in interface javax.jms.Topic
        Overrides:
        toString in class QueueImpl
        Returns:
        the provider specific identity values for this queue.