Package org.infinispan.globalstate
Interface GlobalStateManager
-
public interface GlobalStateManagerGlobalStateManager.- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteScopedState(String scope)Delete the persistent state for the given scopeOptional<ScopedPersistentState>readScopedState(String scope)Reads the persistent state for the specified scope.voidregisterStateProvider(GlobalStateProvider provider)Registers a state provider within this state managervoidwriteGlobalState()Persists the global state by contacting all registered scope providersvoidwriteScopedState(ScopedPersistentState state)Persists the specified scoped state
-
-
-
Method Detail
-
registerStateProvider
void registerStateProvider(GlobalStateProvider provider)
Registers a state provider within this state manager- Parameters:
provider-
-
readScopedState
Optional<ScopedPersistentState> readScopedState(String scope)
Reads the persistent state for the specified scope.
-
writeScopedState
void writeScopedState(ScopedPersistentState state)
Persists the specified scoped state
-
deleteScopedState
void deleteScopedState(String scope)
Delete the persistent state for the given scope
-
writeGlobalState
void writeGlobalState()
Persists the global state by contacting all registered scope providers
-
-