Class RedisRepositoryState
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryState
org.springframework.statemachine.data.redis.RedisRepositoryState
Redis entity for states.
-
Constructor Summary
ConstructorDescriptionInstantiates a new redis repository state.RedisRepositoryState
(String state) Instantiates a new redis repository state.RedisRepositoryState
(String state, boolean initial) Instantiates a new redis repository state.RedisRepositoryState
(String machineId, String state, boolean initial) Instantiates a new redis repository state.RedisRepositoryState
(String machineId, RedisRepositoryState parentState, String state, boolean initial) Instantiates a new redis repository state.RedisRepositoryState
(String machineId, RedisRepositoryState parentState, String state, boolean initial, Set<RedisRepositoryAction> stateActions, Set<RedisRepositoryAction> entryActions, Set<RedisRepositoryAction> exitActions) Instantiates a new redis repository state. -
Method Summary
Modifier and TypeMethodDescriptionGets the deferred events.Gets the entry actions.Gets the exit actions.Gets the initial action.getKind()
Gets the pseudo state kind.Gets the machine id.Gets the parent state.Gets the region.getState()
Gets the state.Gets the state actions.Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.Checks if is initial.void
setDeferredEvents
(Set<String> deferredEvents) void
setEntryActions
(Set<RedisRepositoryAction> entryActions) void
setExitActions
(Set<RedisRepositoryAction> exitActions) void
setInitial
(boolean initial) void
setInitialAction
(RedisRepositoryAction initialAction) void
setKind
(PseudoStateKind kind) void
setMachineId
(String machineId) void
setParentState
(RedisRepositoryState parentState) void
void
void
setStateActions
(Set<RedisRepositoryAction> stateActions) void
setSubmachineId
(String submachineId) toString()
-
Constructor Details
-
RedisRepositoryState
public RedisRepositoryState()Instantiates a new redis repository state. -
RedisRepositoryState
Instantiates a new redis repository state.- Parameters:
state
- the state
-
RedisRepositoryState
Instantiates a new redis repository state.- Parameters:
state
- the stateinitial
- the initial
-
RedisRepositoryState
Instantiates a new redis repository state.- Parameters:
machineId
- the machine idstate
- the stateinitial
- the initial
-
RedisRepositoryState
public RedisRepositoryState(String machineId, RedisRepositoryState parentState, String state, boolean initial) Instantiates a new redis repository state.- Parameters:
machineId
- the machine idparentState
- the parent statestate
- the stateinitial
- the initial
-
RedisRepositoryState
public RedisRepositoryState(String machineId, RedisRepositoryState parentState, String state, boolean initial, Set<RedisRepositoryAction> stateActions, Set<RedisRepositoryAction> entryActions, Set<RedisRepositoryAction> exitActions) Instantiates a new redis repository state.- Parameters:
machineId
- the machine idparentState
- the parent statestate
- the stateinitial
- the initialstateActions
- the state actionsentryActions
- the entry actionsexitActions
- the exit actions
-
-
Method Details
-
getMachineId
Description copied from class:RepositoryState
Gets the machine id.- Specified by:
getMachineId
in classRepositoryState
- Returns:
- the machine id
-
setMachineId
-
getRegion
Description copied from class:RepositoryState
Gets the region.- Specified by:
getRegion
in classRepositoryState
- Returns:
- the region
-
setRegion
-
getParentState
Description copied from class:RepositoryState
Gets the parent state.- Specified by:
getParentState
in classRepositoryState
- Returns:
- the parent state
-
setParentState
-
getState
Description copied from class:RepositoryState
Gets the state.- Specified by:
getState
in classRepositoryState
- Returns:
- the state
-
setState
-
getKind
Description copied from class:RepositoryState
Gets the pseudo state kind.- Specified by:
getKind
in classRepositoryState
- Returns:
- the pseudo state kind
-
setKind
-
isInitial
Description copied from class:RepositoryState
Checks if is initial.- Specified by:
isInitial
in classRepositoryState
- Returns:
- true, if is initial
-
setInitial
public void setInitial(boolean initial) -
getInitialAction
Description copied from class:RepositoryState
Gets the initial action. This is any meaningful if state is initial state.- Specified by:
getInitialAction
in classRepositoryState
- Returns:
- the initial action
-
setInitialAction
-
getStateActions
Description copied from class:RepositoryState
Gets the state actions.- Specified by:
getStateActions
in classRepositoryState
- Returns:
- the state actions
-
setStateActions
-
getEntryActions
Description copied from class:RepositoryState
Gets the entry actions.- Specified by:
getEntryActions
in classRepositoryState
- Returns:
- the entry actions
-
setEntryActions
-
getExitActions
Description copied from class:RepositoryState
Gets the exit actions.- Specified by:
getExitActions
in classRepositoryState
- Returns:
- the exit actions
-
setExitActions
-
getDeferredEvents
Description copied from class:RepositoryState
Gets the deferred events.- Specified by:
getDeferredEvents
in classRepositoryState
- Returns:
- the deferred events
-
setDeferredEvents
-
getSubmachineId
Description copied from class:RepositoryState
Gets the submachine id indicating that this is a submachine state and its structure is available from particular machine itself.- Specified by:
getSubmachineId
in classRepositoryState
- Returns:
- the submachine id
-
setSubmachineId
-
toString
-