|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.request.PushRequestMemoryDataStore
public class PushRequestMemoryDataStore
Represents in-memory storage of push request data.
Warning: For testing use only. It is not meant for production use.
| Constructor Summary | |
|---|---|
PushRequestMemoryDataStore()
|
|
| Method Summary | |
|---|---|
PushRequest |
loadFromStore(String pushId)
Loads a push request from in-memory storage. |
List<String> |
loadKeysFromStore()
Loads the keys (push ids) for the push requests currently in memory. |
PushRequest |
removeFromStore(String pushId)
Removes a push request from memory. |
void |
saveInStore(String pushId,
PushRequest pushRequest)
Saves a push request in memory. |
void |
setCache(net.sf.ehcache.Cache cache)
Sets the cache to be used for storing push request data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PushRequestMemoryDataStore()
| Method Detail |
|---|
public void setCache(net.sf.ehcache.Cache cache)
cache - the cache for storing push request datapublic PushRequest loadFromStore(String pushId)
pushId - the id of the push
public List<String> loadKeysFromStore()
public void saveInStore(String pushId,
PushRequest pushRequest)
pushId - the id of the pushpushCount - the push request to be storedpublic PushRequest removeFromStore(String pushId)
pushId - the id of the push
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||