- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.jms;
-
- /** A <CODE>TemporaryTopic</CODE> object is a unique <CODE>Topic</CODE> object
- * created for the duration of a <CODE>TopicConnection</CODE>. It is a
- * system-defined topic that can be consumed only by the
- * <CODE>TopicConnection</CODE> that created it.
- *
- * @version 1.0 - 9 March 1998
- * @author Mark Hapner
- * @author Rich Burridge
- *
- * @see TopicSession#createTemporaryTopic()
- */
-
- public interface TemporaryTopic extends Topic {
-
- /** Deletes this temporary topic. If there are existing subscribers
- * still using it, a <CODE>JMSException</CODE> will be thrown.
- *
- * @exception JMSException if the JMS provider fails to delete the
- * temporary topic due to some internal error.
- */
-
- void
- delete() throws JMSException;
- }