KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > message > JBossMessage


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.message;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.Message JavaDoc;
11
12 import org.jboss.jms.client.SessionDelegate;
13
14 /**
15  * A jboss message
16  *
17  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
18  * @version $Revision: 1.3 $
19  */

20 public interface JBossMessage
21    extends Message JavaDoc, Cloneable JavaDoc
22 {
23    // Constants -----------------------------------------------------
24

25    // Public --------------------------------------------------------
26

27    Object JavaDoc clone() throws CloneNotSupportedException JavaDoc;
28
29    /**
30     * Retrieve the session for this message
31     *
32     * @return the session delegate
33     * @throws JMSException for any error
34     */

35    SessionDelegate getSessionDelegate() throws JMSException JavaDoc;
36
37    /**
38     * Generate a message id for the message
39     */

40    void generateMessageID() throws JMSException JavaDoc;
41
42    /**
43     * Generate a timestamp for the message
44     */

45    void generateTimestamp() throws JMSException JavaDoc;
46
47    /**
48     * Change the message to read only
49     */

50    void makeReadOnly() throws JMSException JavaDoc;
51
52    // Inner Classes --------------------------------------------------
53

54 }
55
Popular Tags