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.String getLocalNodeId()  
    org.teamapps.cluster.state.ReplicatedState getStateMachine​(java.lang.String name, boolean persisted)  
    void removeStateMachine​(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:
      getLocalNodeId in interface org.teamapps.cluster.state.ReplicatedStateRegistry
    • getStateMachine

      public org.teamapps.cluster.state.ReplicatedState getStateMachine​(java.lang.String name, boolean persisted)
      Specified by:
      getStateMachine in interface org.teamapps.cluster.state.ReplicatedStateRegistry
    • removeStateMachine

      public void removeStateMachine​(java.lang.String name)
      Specified by:
      removeStateMachine in interface org.teamapps.cluster.state.ReplicatedStateRegistry