Class RepositoryState
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryState
- Direct Known Subclasses:
JpaRepositoryState
,MongoDbRepositoryState
,RedisRepositoryState
Generic base class representing state entity.
- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the deferred events.abstract Set<? extends RepositoryAction>
Gets the entry actions.abstract Set<? extends RepositoryAction>
Gets the exit actions.abstract RepositoryAction
Gets the initial action.abstract PseudoStateKind
getKind()
Gets the pseudo state kind.abstract String
Gets the machine id.abstract RepositoryState
Gets the parent state.abstract String
Gets the region.abstract String
getState()
Gets the state.abstract Set<? extends RepositoryAction>
Gets the state actions.abstract String
Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.abstract Boolean
Checks if is initial.
-
Constructor Details
-
RepositoryState
public RepositoryState()
-
-
Method Details
-
getParentState
Gets the parent state.- Returns:
- the parent state
-
getMachineId
Gets the machine id.- Returns:
- the machine id
-
getState
Gets the state.- Returns:
- the state
-
getRegion
Gets the region.- Returns:
- the region
-
isInitial
Checks if is initial.- Returns:
- true, if is initial
-
getInitialAction
Gets the initial action. This is any meaningful if state is initial state.- Returns:
- the initial action
-
getStateActions
Gets the state actions.- Returns:
- the state actions
-
getEntryActions
Gets the entry actions.- Returns:
- the entry actions
-
getExitActions
Gets the exit actions.- Returns:
- the exit actions
-
getKind
Gets the pseudo state kind.- Returns:
- the pseudo state kind
-
getDeferredEvents
Gets the deferred events.- Returns:
- the deferred events
-
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
-