Class RepositoryState

java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryState
Direct Known Subclasses:
JpaRepositoryState, MongoDbRepositoryState, RedisRepositoryState

public abstract class RepositoryState extends BaseRepositoryEntity
Generic base class representing state entity.
  • Constructor Details

    • RepositoryState

      public RepositoryState()
  • Method Details

    • getParentState

      public abstract RepositoryState getParentState()
      Gets the parent state.
      Returns:
      the parent state
    • getMachineId

      public abstract String getMachineId()
      Gets the machine id.
      Returns:
      the machine id
    • getState

      public abstract String getState()
      Gets the state.
      Returns:
      the state
    • getRegion

      public abstract String getRegion()
      Gets the region.
      Returns:
      the region
    • isInitial

      public abstract Boolean isInitial()
      Checks if is initial.
      Returns:
      true, if is initial
    • getInitialAction

      public abstract RepositoryAction getInitialAction()
      Gets the initial action. This is any meaningful if state is initial state.
      Returns:
      the initial action
    • getStateActions

      public abstract Set<? extends RepositoryAction> getStateActions()
      Gets the state actions.
      Returns:
      the state actions
    • getEntryActions

      public abstract Set<? extends RepositoryAction> getEntryActions()
      Gets the entry actions.
      Returns:
      the entry actions
    • getExitActions

      public abstract Set<? extends RepositoryAction> getExitActions()
      Gets the exit actions.
      Returns:
      the exit actions
    • getKind

      public abstract PseudoStateKind getKind()
      Gets the pseudo state kind.
      Returns:
      the pseudo state kind
    • getDeferredEvents

      public abstract Set<String> getDeferredEvents()
      Gets the deferred events.
      Returns:
      the deferred events
    • getSubmachineId

      public abstract String getSubmachineId()
      Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.
      Returns:
      the submachine id