Package javax.jms
Interface TemporaryTopic
- 
- All Superinterfaces:
- Destination,- Topic
 
 public interface TemporaryTopic extends Topic ATemporaryTopicobject is a uniqueTopicobject created for the duration of aConnection. It is a system-defined topic that can be consumed only by theConnectionthat created it.A TemporaryTopicobject can be created either at theSessionorTopicSessionlevel. Creating it at theSessionlevel allows theTemporaryTopicto participate in the same transaction with objects from the PTP domain. If aTemporaryTopicis created at theTopicSession, it will only be able participate in transactions with objects from the Pub/Sub domain.- Since:
- JMS 1.0
- See Also:
- Session.createTemporaryTopic(),- TopicSession.createTemporaryTopic()
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Deletes this temporary topic.- 
Methods inherited from interface javax.jms.TopicgetTopicName, toString
 
- 
 
- 
- 
- 
Method Detail- 
deletevoid delete() throws JMSExceptionDeletes this temporary topic. If there are existing subscribers still using it, aJMSExceptionwill be thrown.- Throws:
- JMSException- if the Jakarta Messaging provider fails to delete the temporary topic due to some internal error.
 
 
- 
 
-