|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Context Store provides methods to store and retrieve Context objects.
The Context objects themselves indicate whether they need to be persisted, and if so, provide methods to extract and restore their state.
Field Summary | |
---|---|
static java.lang.String |
$sccsid
|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
Context |
get(java.lang.String key)
Return the context object with the given key. |
void |
initialize(java.lang.String moduleName,
java.lang.String cellName)
Intialize the Context Store. |
void |
put(java.lang.String key,
long timeOut,
Context context)
Put the context object into the store with the given key. |
Context |
remove(java.lang.String key)
Remove the context object with the given key from the store. |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String $sccsid
Method Detail |
public void initialize(java.lang.String moduleName, java.lang.String cellName) throws StoreException
moduleName
- The name of the module.cellName
- The name of the cell.
StoreException
- An error occurred accessing the persistent store.public Context remove(java.lang.String key) throws KeyNotFoundException, StoreException
key
- The context key.
KeyNotFoundException
- The key was not found in the store.
StoreException
- An error occurred accessing the persistent store.public Context get(java.lang.String key) throws KeyNotFoundException, StoreException
key
- The context key.
KeyNotFoundException
- The key was not found in the store.
StoreException
- An error occurred accessing the persistent store.public void put(java.lang.String key, long timeOut, Context context) throws DuplicateKeyException, StoreException
The timeout is only used if the context object is persistent.
key
- The key for the context object.timeOut
- The time (in milliseconds) that the context object is valid.context
- The context object.
DuplicateKeyException
- The key was already in the store.
StoreException
- An error occurred accessing the persistent store.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |