|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the abstraction of something which provides a local storage service, such as a persistence storage service or an in-memory storage service. Two implementations are provided, the PersistentStorage and MemoryStorage, respsectively.
Method Summary | |
void |
store(Id id,
java.io.Serializable obj,
Continuation c)
Stores an object in this storage. |
void |
unstore(Id id,
Continuation c)
Removes the object from the list of stored objects. |
Methods inherited from interface rice.persistence.Catalog |
exists, exists, getObject, getTotalSize, scan, scan |
Method Detail |
public void store(Id id, java.io.Serializable obj, Continuation c)
unstore(id)
followed
by store(id, obj)
. This method finishes by calling
receiveResult() on the provided continuation with the success
or failure of the store.
Returns True
if the action succeeds, else
False
(through receiveResult on c).
id
- The object's id.obj
- The object to store.c
- The command to run once the operation is completepublic void unstore(Id id, Continuation c)
False
is returned.
Returns True
if the action succeeds, else
False
(through receiveResult on c).
c
- The command to run once the operation is complete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |