站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

CacheStore (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq.pm
Interface CacheStore

All Known Implementing Classes:
CacheStore, PersistenceManager, PersistenceManager, PersistenceManager

public interface CacheStore

A cache store.

Version:
$Revision: 1.1.4.1 $
Author:
Hiram Chirino (Cojonudo14@hotmail.com), Paul Kendall (paul.kendall@orion.co.nz), Adrian Brock

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

Method Detail

loadFromStorage

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

Parameters:
mh - the message reference
Returns:
the message
Throws:
javax.jms.JMSException - for any error

saveToStorage

public void saveToStorage(MessageReference mh,
                          SpyMessage message)
                   throws javax.jms.JMSException
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:
javax.jms.JMSException - for any error

removeFromStorage

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

Parameters:
mh - the message reference
Throws:
javax.jms.JMSException - for any error


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.