S
- the type of stateE
- the type of eventT
- the type of context objectpublic interface StateMachinePersist<S,E,T>
StateMachinePersist
is an interface handling serialization
logic of a StateMachineContext
.Modifier and Type | Method and Description |
---|---|
StateMachineContext<S,E> |
read(T contextOjb)
Read a
StateMachineContext from a persistent store
with a context object T . |
void |
write(StateMachineContext<S,E> context,
T contextOjb)
Write a
StateMachineContext into a persistent store
with a context object T . |
void write(StateMachineContext<S,E> context, T contextOjb) throws java.lang.Exception
StateMachineContext
into a persistent store
with a context object T
.context
- the contextcontextOjb
- the context ojbjava.lang.Exception
- the exceptionStateMachineContext<S,E> read(T contextOjb) throws java.lang.Exception
StateMachineContext
from a persistent store
with a context object T
.contextOjb
- the context ojbjava.lang.Exception
- the exception