KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > messaging > interfaces > MessageReference


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.messaging.interfaces;
8
9 /**
10  * A message reference provides basic information about a message.
11  *
12  * @author <a HREF="mailto:adrian@jboss.org">Adrian Brock</a>
13  * @version $Revision: 1.1 $
14  */

15 public interface MessageReference
16 {
17    // Constants -----------------------------------------------------
18

19    // Public --------------------------------------------------------
20

21    /**
22     * Get the message id
23     *
24     * @return the message id
25     */

26    Comparable JavaDoc getMessageID();
27    
28    /**
29     * Get the message priority
30     *
31     * @return the priority
32     */

33    int getMessagePriority();
34    
35    /**
36     * Get the message address
37     *
38     * @return the address
39     */

40    MessageAddress getMessageAddress();
41    
42    /**
43     * Does the message require guaranteed delivery?
44     *
45     * @return true for guaranteed delivery, false otherwise
46     */

47    boolean isGuaranteed();
48
49    /**
50     * Release a reference that is no longer used
51     */

52    void release();
53    
54    // Inner Classes --------------------------------------------------
55
}
56
Popular Tags