public interface ApplicationStateManager
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String objectName)
Checks to see if the named object exists.
|
void |
flush()
Asks each
StateObjectManager to store each object obtained. |
java.lang.Object |
get(java.lang.String objectName)
Gets the named application state object, creating it if necessary.
|
void |
store(java.lang.String objectName,
java.lang.Object stateObject)
Stores a new state object, replacing the old one.
|
boolean exists(java.lang.String objectName)
objectName
- the name of the application state objectorg.apache.hivemind.ApplicationRuntimeException
- if no such object is declaredjava.lang.Object get(java.lang.String objectName)
objectName
- the name of the application state objectorg.apache.hivemind.ApplicationRuntimeException
- if no such object is declaredvoid store(java.lang.String objectName, java.lang.Object stateObject)
objectName
- the name of the object to storestateObject
- the new object, possibly nullorg.apache.hivemind.ApplicationRuntimeException
- if no such object is declaredvoid flush()
StateObjectManager
to store each object obtained.