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 GlobalStateProvider
s
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()
GlobalStateManager
writeGlobalState
in interface GlobalStateManager
public void writeScopedState(ScopedPersistentState state)
GlobalStateManager
writeScopedState
in interface GlobalStateManager
public Optional<ScopedPersistentState> readScopedState(String scope)
GlobalStateManager
readScopedState
in interface GlobalStateManager
public void registerStateProvider(GlobalStateProvider provider)
GlobalStateManager
registerStateProvider
in interface GlobalStateManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.