|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
MessageCache is responsible for managing a collection of messages. Messages
in the cache are referenced via MessageRef instances
| Method Summary | |
void |
addMessage(MessageRef reference,
MessageImpl message)
Add a reference and its corresponding message to the cache |
void |
addMessageRef(MessageRef reference)
Adds a message reference to the cache |
void |
destroy(MessageRef reference)
Destroys the message corresponding to the reference |
MessageImpl |
getMessage(MessageRef reference)
Returns the message corresponding to the specified reference |
MessageRef |
getMessageRef(java.lang.String messageId)
Returns a message reference, given its identifier |
| Method Detail |
public void addMessage(MessageRef reference,
MessageImpl message)
reference - the reference to the messagemessage - the messagepublic void addMessageRef(MessageRef reference)
reference - the message reference to addpublic MessageRef getMessageRef(java.lang.String messageId)
messageId - the message identifiermessageId, or
null if none exists
public MessageImpl getMessage(MessageRef reference)
throws javax.jms.JMSException
reference - the message referencenull if none existsjavax.jms.JMSException - for any error
public void destroy(MessageRef reference)
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 | |||||||||