org.jboss.messaging.interfaces
Interface MessageReference


public interface MessageReference

A message reference provides basic information about a message.


Method Summary
 MessageAddress (src) getMessageAddress()
          Get the message address
 java.lang.Comparable getMessageID()
          Get the message id
 int getMessagePriority()
          Get the message priority
 boolean isGuaranteed()
          Does the message require guaranteed delivery?
 void release()
          Release a reference that is no longer used
 

Method Detail

getMessageID

public java.lang.Comparable getMessageID()
Get the message id

Returns:
the message id

getMessagePriority

public int getMessagePriority()
Get the message priority

Returns:
the priority

getMessageAddress

public MessageAddress (src)  getMessageAddress()
Get the message address

Returns:
the address

isGuaranteed

public boolean isGuaranteed()
Does the message require guaranteed delivery?

Returns:
true for guaranteed delivery, false otherwise

release

public void release()
Release a reference that is no longer used