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
ConstructorDescriptionInstantiates 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.void
setActions
(Set<RedisRepositoryAction> actions) void
void
setGuard
(RedisRepositoryGuard guard) void
setKind
(TransitionKind kind) void
setMachineId
(String machineId) void
setSource
(RedisRepositoryState source) void
setTarget
(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:RepositoryTransition
Gets the machine id.- Specified by:
getMachineId
in classRepositoryTransition
- Returns:
- the machine id
-
setMachineId
-
getSource
Description copied from class:RepositoryTransition
Gets the source.- Specified by:
getSource
in classRepositoryTransition
- Returns:
- the source
-
setSource
-
getTarget
Description copied from class:RepositoryTransition
Gets the target.- Specified by:
getTarget
in classRepositoryTransition
- Returns:
- the target
-
setTarget
-
getEvent
Description copied from class:RepositoryTransition
Gets the event.- Specified by:
getEvent
in classRepositoryTransition
- Returns:
- the event
-
setEvent
-
getActions
Description copied from class:RepositoryTransition
Gets the actions.- Specified by:
getActions
in classRepositoryTransition
- Returns:
- the actions
-
setActions
-
getGuard
Description copied from class:RepositoryTransition
Gets the guard.- Specified by:
getGuard
in classRepositoryTransition
- Returns:
- the guard
-
setGuard
-
getKind
Description copied from class:RepositoryTransition
Gets the transition kind.- Specified by:
getKind
in classRepositoryTransition
- Returns:
- the transition kind
-
setKind
-
toString
-