|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pushappmgmt.PushAppMemoryDataStore
public class PushAppMemoryDataStore
Represents in-memory storage of push application data. The in-memory storage is persisted to a disk store on shutdown and read from the disk store on startup.
Warning: For testing use only. It is not meant for production use.
| Constructor Summary | |
|---|---|
PushAppMemoryDataStore()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Flushes the cache to disk. |
PushApplication |
loadFromStore(String appId)
Loads a push application from in-memory storage. |
List<String> |
loadKeysFromStore()
Loads the keys (app ids) for the push applications currently in memory. |
PushApplication |
removeFromStore(String appId)
Removes a push application from memory. |
void |
saveInStore(String appId,
PushApplication pushApplication)
Saves a push application in memory. |
void |
setCache(net.sf.ehcache.Cache cache)
Sets the cache to be used for storing push application data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushAppMemoryDataStore()
| Method Detail |
|---|
public void setCache(net.sf.ehcache.Cache cache)
cache - the cache for storing push app datapublic void destroy()
public PushApplication loadFromStore(String appId)
appId - the id of the push application to lookup
public List<String> loadKeysFromStore()
public void saveInStore(String appId,
PushApplication pushApplication)
appId - the id of the push applicationpushApplication - the push application to be storedpublic PushApplication removeFromStore(String appId)
appId - the id of the push application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||