1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.jms;
  6. /** A <CODE>TemporaryQueue</CODE> object is a unique <CODE>Queue</CODE> object
  7. * created for the duration of a <CODE>QueueConnection</CODE>. It is a
  8. * system-defined queue that can be consumed only by the
  9. * <CODE>QueueConnection</CODE> that created it.
  10. *
  11. * @version 1.0 - 9 March 1998
  12. * @author Mark Hapner
  13. * @author Rich Burridge
  14. *
  15. * @see QueueSession#createTemporaryQueue()
  16. */
  17. public interface TemporaryQueue extends Queue {
  18. /** Deletes this temporary queue. If there are existing receivers
  19. * still using it, a <CODE>JMSException</CODE> will be thrown.
  20. *
  21. * @exception JMSException if the JMS provider fails to delete the
  22. * temporary queue due to some internal error.
  23. */
  24. void
  25. delete() throws JMSException;
  26. }