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>TemporaryTopic</CODE> object is a unique <CODE>Topic</CODE> object
  7. * created for the duration of a <CODE>TopicConnection</CODE>. It is a
  8. * system-defined topic that can be consumed only by the
  9. * <CODE>TopicConnection</CODE> that created it.
  10. *
  11. * @version 1.0 - 9 March 1998
  12. * @author Mark Hapner
  13. * @author Rich Burridge
  14. *
  15. * @see TopicSession#createTemporaryTopic()
  16. */
  17. public interface TemporaryTopic extends Topic {
  18. /** Deletes this temporary topic. If there are existing subscribers
  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 topic due to some internal error.
  23. */
  24. void
  25. delete() throws JMSException;
  26. }