Class RedisRepositoryStateMachine
java.lang.Object
org.springframework.statemachine.data.BaseRepositoryEntity
org.springframework.statemachine.data.RepositoryStateMachine
org.springframework.statemachine.data.redis.RedisRepositoryStateMachine
@RedisHash("RedisRepositoryStateMachine")
public class RedisRepositoryStateMachine
extends RepositoryStateMachine
A
RepositoryStateMachine
interface for Redis used for states machines.- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the machine id.getState()
Gets the state.byte[]
Gets the state machine context.void
void
setMachineId
(String machineId) void
void
setStateMachineContext
(byte[] stateMachineContext)
-
Constructor Details
-
RedisRepositoryStateMachine
public RedisRepositoryStateMachine()
-
-
Method Details
-
getId
-
setId
-
getMachineId
Description copied from class:RepositoryStateMachine
Gets the machine id.- Specified by:
getMachineId
in classRepositoryStateMachine
- Returns:
- the machine id
-
setMachineId
-
getState
Description copied from class:RepositoryStateMachine
Gets the state.- Specified by:
getState
in classRepositoryStateMachine
- Returns:
- the state
-
setState
-
getStateMachineContext
public byte[] getStateMachineContext()Description copied from class:RepositoryStateMachine
Gets the state machine context.- Specified by:
getStateMachineContext
in classRepositoryStateMachine
- Returns:
- the state machine context
-
setStateMachineContext
public void setStateMachineContext(byte[] stateMachineContext)
-