org.jboss.mq.pm
Interface CacheStore

All Known Implementing Classes:
PersistenceManager (src) , PersistenceManager (src) , PersistenceManager (src)

public interface CacheStore

A cache store.


Method Summary
 SpyMessage (src) loadFromStorage(MessageReference (src)  mh)
          Reads the message refered to by the MessagReference back as a SpyMessage
 void removeFromStorage(MessageReference (src)  mh)
          Removes the message that was stored in secondary storage.
 void saveToStorage(MessageReference (src)  mh, SpyMessage (src)  message)
          Stores the given message to secondary storeage.
 

Method Detail

loadFromStorage

public SpyMessage (src)  loadFromStorage(MessageReference (src)  mh)
                           throws JMSException (src) 
Reads the message refered to by the MessagReference back as a SpyMessage

Parameters:
mh - the message reference
Returns:
the message
Throws:
JMSException (src) - for any error

saveToStorage

public void saveToStorage(MessageReference (src)  mh,
                          SpyMessage (src)  message)
                   throws JMSException (src) 
Stores the given message to secondary storeage. You should be able to use the MessagReference to load the message back later.

Parameters:
mh - the message reference
message - the message
Throws:
JMSException (src) - for any error

removeFromStorage

public void removeFromStorage(MessageReference (src)  mh)
                       throws JMSException (src) 
Removes the message that was stored in secondary storage.

Parameters:
mh - the message reference
Throws:
JMSException (src) - for any error