|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A MessageRef is used to indirectly reference a message by MessageHandle instances. When there are no MessageHandles referencing the
message, the message can be destroyed
| Method Summary | |
void |
dereference()
Decrement the reference. |
void |
destroy()
Destroy the message, irrespective of the number of current references. |
MessageImpl |
getMessage()
Returns the message associated with this reference. |
java.lang.String |
getMessageId()
Returns the message identifier. |
boolean |
isPersistent()
Determines if the underlying message is persistent. |
void |
reference()
Increment the reference. |
| Method Detail |
public java.lang.String getMessageId()
public MessageImpl getMessage()
throws javax.jms.JMSException
null if the reference is
no longer validejavax.jms.JMSException - for any errorpublic boolean isPersistent()
true if the message is persistent; otherwise
false
public void reference()
throws javax.jms.JMSException
javax.jms.JMSException - if the handle has been destroyed
public void dereference()
throws javax.jms.JMSException
javax.jms.JMSException - for any error
public void destroy()
throws javax.jms.JMSException
javax.jms.JMSException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||