Class RepositoryStateMachinePersist<S,E>
java.lang.Object
org.springframework.statemachine.persist.RepositoryStateMachinePersist<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachinePersist<S,
E, String>
public class RepositoryStateMachinePersist<S,E>
extends Object
implements StateMachinePersist<S,E,String>
A
StateMachinePersist
using a generic StateMachineContextRepository
for persisting StateMachineContext
.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionRepositoryStateMachinePersist
(StateMachineContextRepository<S, E, StateMachineContext<S, E>> repository) Instantiates a new repository state machine persist. -
Method Summary
Modifier and TypeMethodDescriptionRead aStateMachineContext
from a persistent store with a context objectT
.void
write
(StateMachineContext<S, E> context, String contextObj) Write aStateMachineContext
into a persistent store with a context objectT
.
-
Constructor Details
-
RepositoryStateMachinePersist
public RepositoryStateMachinePersist(StateMachineContextRepository<S, E, StateMachineContext<S, E>> repository) Instantiates a new repository state machine persist.- Parameters:
repository
- the repository
-
-
Method Details
-
write
Description copied from interface:StateMachinePersist
Write aStateMachineContext
into a persistent store with a context objectT
. -
read
Description copied from interface:StateMachinePersist
Read aStateMachineContext
from a persistent store with a context objectT
.
-