org.jboss.mq
Class SpyTemporaryTopic

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

public class SpyTemporaryTopic
extends SpyTopic (src)
implements TemporaryTopic (src)

This class implements javax.jms.TemporaryTopic

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.mq.SpyTopic (src)
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
SpyTemporaryTopic(java.lang.String topicName, ConnectionToken (src)  dc_)
          Create a new SpyTemporaryTopic
 
Method Summary
 void delete()
          Deletes this temporary topic.
 void setConnection(Connection (src)  con)
          Client-side temporary topics need a reference to the connection that created them in case delete() is called.
 
Methods inherited from class org.jboss.mq.SpyTopic (src)
equals, getDurableSubscriptionID, getReference, getTopicName, toString
 
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
 
Methods inherited from interface javax.jms.Topic (src)
getTopicName, toString
 

Constructor Detail

SpyTemporaryTopic

public SpyTemporaryTopic(java.lang.String topicName,
                         ConnectionToken (src)  dc_)
Create a new SpyTemporaryTopic

Parameters:
topicName - the topic name
dc_ - the connection token
Method Detail

setConnection

public void setConnection(Connection (src)  con)
Client-side temporary topics need a reference to the connection that created them in case delete() is called.

Parameters:
con - the connection

delete

public void delete()
            throws JMSException (src) 
Description copied from interface: TemporaryTopic (src)
Deletes this temporary topic. If there are existing subscribers still using it, a JMSException will be thrown.

Specified by:
delete in interface TemporaryTopic (src)
Throws:
JMSException (src) - if the JMS provider fails to delete the temporary topic due to some internal error.