public interface GlobalStateManager
Modifier and Type | Method and Description |
---|---|
Optional<ScopedPersistentState> |
readScopedState(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
- Optional<ScopedPersistentState> readScopedState(String scope)
void writeScopedState(ScopedPersistentState state)
void writeGlobalState()
Copyright © 2021 JBoss by Red Hat. All rights reserved.