org.jboss.mq
Class SpyTopic

java.lang.Object
  extended byorg.jboss.mq.SpyDestination (src) 
      extended byorg.jboss.mq.SpyTopic
All Implemented Interfaces:
Destination (src) , javax.naming.Referenceable, java.io.Serializable, Topic (src)
Direct Known Subclasses:
SpyTemporaryTopic (src)

public class SpyTopic
extends SpyDestination (src)
implements java.io.Serializable, Topic (src) , javax.naming.Referenceable

This class implements javax.jms.Topic

See Also:
Serialized Form

Field Summary
protected  DurableSubscriptionID (src) durableSubscriptionID
          The durableSubscriptionID
 
Fields inherited from class org.jboss.mq.SpyDestination (src)
hash, name, NULL, OBJECT, SPY_QUEUE, SPY_TEMP_QUEUE, SPY_TEMP_TOPIC, SPY_TOPIC
 
Constructor Summary
SpyTopic(SpyTopic (src)  topic, DurableSubscriptionID (src)  subid)
          Create a new SpyTopic
SpyTopic(SpyTopic (src)  topic, java.lang.String clientID, java.lang.String subscriptionName, java.lang.String selector)
          Create a new SpyTopic
SpyTopic(java.lang.String topicName)
          Create a new SpyTopic
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 DurableSubscriptionID (src) getDurableSubscriptionID()
          Get the durable subscription id return the durable subscription id
 javax.naming.Reference getReference()
           
 java.lang.String getTopicName()
          Gets the name of this topic.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class org.jboss.mq.SpyDestination (src)
getName, hashCode, readDest, writeDest
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

durableSubscriptionID

protected DurableSubscriptionID (src)  durableSubscriptionID
The durableSubscriptionID

Constructor Detail

SpyTopic

public SpyTopic(java.lang.String topicName)
Create a new SpyTopic

Parameters:
topicName - the topic name

SpyTopic

public SpyTopic(SpyTopic (src)  topic,
                java.lang.String clientID,
                java.lang.String subscriptionName,
                java.lang.String selector)
Create a new SpyTopic

Parameters:
topic - the topic
clientID - the client id
subscriptionName - the subscription name
selector - the selector

SpyTopic

public SpyTopic(SpyTopic (src)  topic,
                DurableSubscriptionID (src)  subid)
Create a new SpyTopic

Parameters:
topic - the topic
subid - the durable subscription
Method Detail

getDurableSubscriptionID

public DurableSubscriptionID (src)  getDurableSubscriptionID()
Get the durable subscription id return the durable subscription id


getTopicName

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

Clients that depend upon the name are not portable.

Specified by:
getTopicName in interface Topic (src)
Returns:
the topic name

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Throws:
javax.naming.NamingException

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()
Description copied from interface: Topic (src)
Returns a string representation of this object.

Specified by:
toString in interface Topic (src)