1 /*2 * JBoss, the OpenSource J2EE webOS3 *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 MessageReference16 {17 // Constants -----------------------------------------------------18 19 // Public --------------------------------------------------------20 21 /**22 * Get the message id23 * 24 * @return the message id25 */26 Comparable getMessageID();27 28 /**29 * Get the message priority30 * 31 * @return the priority32 */33 int getMessagePriority();34 35 /**36 * Get the message address37 * 38 * @return the address39 */40 MessageAddress getMessageAddress();41 42 /**43 * Does the message require guaranteed delivery?44 * 45 * @return true for guaranteed delivery, false otherwise46 */47 boolean isGuaranteed();48 49 /**50 * Release a reference that is no longer used51 */52 void release();53 54 // Inner Classes --------------------------------------------------55 }56