01: /*
02: * @(#)TemporaryQueue.java 1.13 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>TemporaryQueue</CODE> object is a unique <CODE>Queue</CODE> object
15: * created for the duration of a <CODE>Connection</CODE>. It is a
16: * system-defined queue that can be consumed only by the
17: * <CODE>Connection</CODE> that created it.
18: *
19: *<P>A <CODE>TemporaryQueue</CODE> object can be created at either the
20: * <CODE>Session</CODE> or <CODE>QueueSession</CODE> level. Creating it at the
21: * <CODE>Session</CODE> level allows to the <CODE>TemporaryQueue</CODE> to
22: * participate in transactions with objects from the Pub/Sub domain.
23: * If it is created at the <CODE>QueueSession</CODE>, it will only
24: * be able participate in transactions with objects from the PTP domain.
25: *
26: * @version 1.1 - February 2, 2002
27: * @author Mark Hapner
28: * @author Rich Burridge
29: * @author Kate Stout
30: *
31: * @see Session#createTemporaryQueue()
32: * @see QueueSession#createTemporaryQueue()
33: */
34:
35: public interface TemporaryQueue extends Queue {
36:
37: /** Deletes this temporary queue. If there are existing receivers
38: * still using it, a <CODE>JMSException</CODE> will be thrown.
39: *
40: * @exception JMSException if the JMS provider fails to delete the
41: * temporary queue due to some internal error.
42: */
43:
44: void delete() throws JMSException;
45: }
|