public class GlobalStateManagerImpl extends Object implements GlobalStateManager
GlobalStateProviders| Constructor and Description |
|---|
GlobalStateManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
inject(GlobalConfiguration globalConfiguration,
TimeService timeService,
EmbeddedCacheManager cacheManager) |
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 |
start() |
void |
stop() |
void |
writeGlobalState()
Persists the global state by contacting all registered scope providers
|
void |
writeScopedState(ScopedPersistentState state)
Persists the specified scoped state
|
public void inject(GlobalConfiguration globalConfiguration, TimeService timeService, EmbeddedCacheManager cacheManager)
public void start()
public void stop()
public void writeGlobalState()
GlobalStateManagerwriteGlobalState in interface GlobalStateManagerpublic void writeScopedState(ScopedPersistentState state)
GlobalStateManagerwriteScopedState in interface GlobalStateManagerpublic Optional<ScopedPersistentState> readScopedState(String scope)
GlobalStateManagerreadScopedState in interface GlobalStateManagerpublic void registerStateProvider(GlobalStateProvider provider)
GlobalStateManagerregisterStateProvider in interface GlobalStateManagerCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.