public class GlobalStateManagerImpl extends Object implements GlobalStateManager
version = full version (e.g. major.minor.micro.qualifier) timestamp = timestamp using ISO-8601
as well as any additional information contributed by registered GlobalStateProviders
| Modifier and Type | Field and Description |
|---|---|
static String |
TIMESTAMP |
static String |
VERSION |
static String |
VERSION_MAJOR |
| Constructor and Description |
|---|
GlobalStateManagerImpl() |
| 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 |
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 static final String VERSION
public static final String TIMESTAMP
public static final String VERSION_MAJOR
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 © 2022 JBoss by Red Hat. All rights reserved.