|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageCache
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 |
---|
void addMessage(MessageRef reference, MessageImpl message)
reference
- the reference to the messagemessage
- the messagevoid addMessageRef(MessageRef reference)
reference
- the message reference to addMessageRef getMessageRef(java.lang.String messageId)
messageId
- the message identifier
messageId
, or
null
if none existsMessageImpl getMessage(MessageRef reference) throws javax.jms.JMSException
reference
- the message reference
null
if none exists
javax.jms.JMSException
- for any errorvoid destroy(MessageRef reference) throws javax.jms.JMSException
javax.jms.JMSException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |