public interface GlobalStateManager
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ScopedPersistentState> |
readScopedState(java.lang.String scope)
Reads the persistent state for the specified scope.
|
void |
registerStateProvider(GlobalStateProvider provider)
Registers a state provider within this state manager
|
void |
writeGlobalState()
Persists the global state by contacting all registered scope providers
|
void |
writeScopedState(ScopedPersistentState state)
Persists the specified scoped state
|
void registerStateProvider(GlobalStateProvider provider)
provider - java.util.Optional<ScopedPersistentState> readScopedState(java.lang.String scope)
void writeScopedState(ScopedPersistentState state)
void writeGlobalState()