Class StateRegistry
java.lang.Object
org.teamapps.application.api.state.StateRegistry
- All Implemented Interfaces:
org.teamapps.cluster.state.ReplicatedStateRegistry
public class StateRegistry
extends java.lang.Object
implements org.teamapps.cluster.state.ReplicatedStateRegistry
-
Constructor Summary
Constructors Constructor Description StateRegistry() -
Method Summary
Modifier and Type Method Description java.lang.StringgetLocalNodeId()org.teamapps.cluster.state.ReplicatedStategetStateMachine(java.lang.String name, boolean persisted)voidremoveStateMachine(java.lang.String name)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StateRegistry
public StateRegistry()
-
-
Method Details
-
getLocalNodeId
public java.lang.String getLocalNodeId()- Specified by:
getLocalNodeIdin interfaceorg.teamapps.cluster.state.ReplicatedStateRegistry
-
getStateMachine
public org.teamapps.cluster.state.ReplicatedState getStateMachine(java.lang.String name, boolean persisted)- Specified by:
getStateMachinein interfaceorg.teamapps.cluster.state.ReplicatedStateRegistry
-
removeStateMachine
public void removeStateMachine(java.lang.String name)- Specified by:
removeStateMachinein interfaceorg.teamapps.cluster.state.ReplicatedStateRegistry
-