01: /*
02: * @(#)TemporaryTopic.java 1.11 02/04/09
03: *
04: * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL.
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms.
09: *
10: */
11:
12: package javax.jms;
13:
14: /** A <CODE>TemporaryTopic</CODE> object is a unique <CODE>Topic</CODE> object
15: * created for the duration of a <CODE>Connection</CODE>. It is a
16: * system-defined topic that can be consumed only by the
17: * <CODE>Connection</CODE> that created it.
18: *
19: *<P>A <CODE>TemporaryTopic</CODE> object can be created either at the
20: * <CODE>Session</CODE> or <CODE>TopicSession</CODE> level. Creating it at the
21: * <CODE>Session</CODE> level allows the <CODE>TemporaryTopic</CODE> to participate
22: * in the same transaction with objects from the PTP domain.
23: * If a <CODE>TemporaryTopic</CODE> is created at the
24: * <CODE>TopicSession</CODE>, it will only
25: * be able participate in transactions with objects from the Pub/Sub domain.
26: *
27: * @version 1.1 - February 2, 2002
28: * @author Mark Hapner
29: * @author Rich Burridge
30: * @author Kate Stout
31: *
32: * @see Session#createTemporaryTopic()
33: * @see TopicSession#createTemporaryTopic()
34: */
35:
36: public interface TemporaryTopic extends Topic {
37:
38: /** Deletes this temporary topic. If there are existing subscribers
39: * still using it, a <CODE>JMSException</CODE> will be thrown.
40: *
41: * @exception JMSException if the JMS provider fails to delete the
42: * temporary topic due to some internal error.
43: */
44:
45: void delete() throws JMSException;
46: }
|