Class RedisRepositoryTransition
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryTransition
org.springframework.statemachine.data.redis.RedisRepositoryTransition
@RedisHash("RedisRepositoryTransition")
public class RedisRepositoryTransition
extends RepositoryTransition
Redis entity for transitions.
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new redis repository transition.RedisRepositoryTransition(String machineId, RedisRepositoryState source, RedisRepositoryState target, String event) Instantiates a new redis repository transition.RedisRepositoryTransition(String machineId, RedisRepositoryState source, RedisRepositoryState target, String event, Set<RedisRepositoryAction> actions) Instantiates a new redis repository transition.RedisRepositoryTransition(RedisRepositoryState source, RedisRepositoryState target, String event) Instantiates a new redis repository transition. -
Method Summary
Modifier and TypeMethodDescriptionGets the actions.getEvent()Gets the event.getGuard()Gets the guard.getKind()Gets the transition kind.Gets the machine id.Gets the source.Gets the target.voidsetActions(Set<RedisRepositoryAction> actions) voidvoidsetGuard(RedisRepositoryGuard guard) voidsetKind(TransitionKind kind) voidsetMachineId(String machineId) voidsetSource(RedisRepositoryState source) voidsetTarget(RedisRepositoryState target) toString()
-
Constructor Details
-
RedisRepositoryTransition
public RedisRepositoryTransition()Instantiates a new redis repository transition. -
RedisRepositoryTransition
public RedisRepositoryTransition(RedisRepositoryState source, RedisRepositoryState target, String event) Instantiates a new redis repository transition.- Parameters:
source- the sourcetarget- the targetevent- the event
-
RedisRepositoryTransition
public RedisRepositoryTransition(String machineId, RedisRepositoryState source, RedisRepositoryState target, String event) Instantiates a new redis repository transition.- Parameters:
machineId- the machine idsource- the sourcetarget- the targetevent- the event
-
RedisRepositoryTransition
public RedisRepositoryTransition(String machineId, RedisRepositoryState source, RedisRepositoryState target, String event, Set<RedisRepositoryAction> actions) Instantiates a new redis repository transition.- Parameters:
machineId- the machine idsource- the sourcetarget- the targetevent- the eventactions- the actions
-
-
Method Details
-
getMachineId
Description copied from class:RepositoryTransitionGets the machine id.- Specified by:
getMachineIdin classRepositoryTransition- Returns:
- the machine id
-
setMachineId
-
getSource
Description copied from class:RepositoryTransitionGets the source.- Specified by:
getSourcein classRepositoryTransition- Returns:
- the source
-
setSource
-
getTarget
Description copied from class:RepositoryTransitionGets the target.- Specified by:
getTargetin classRepositoryTransition- Returns:
- the target
-
setTarget
-
getEvent
Description copied from class:RepositoryTransitionGets the event.- Specified by:
getEventin classRepositoryTransition- Returns:
- the event
-
setEvent
-
getActions
Description copied from class:RepositoryTransitionGets the actions.- Specified by:
getActionsin classRepositoryTransition- Returns:
- the actions
-
setActions
-
getGuard
Description copied from class:RepositoryTransitionGets the guard.- Specified by:
getGuardin classRepositoryTransition- Returns:
- the guard
-
setGuard
-
getKind
Description copied from class:RepositoryTransitionGets the transition kind.- Specified by:
getKindin classRepositoryTransition- Returns:
- the transition kind
-
setKind
-
toString
-