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 contextObj)
Read a
StateMachineContext from a persistent store
with a context object T. |
void |
write(StateMachineContext<S,E> context,
T contextObj)
Write a
StateMachineContext into a persistent store
with a context object T. |
void write(StateMachineContext<S,E> context, T contextObj) throws java.lang.Exception
StateMachineContext into a persistent store
with a context object T.context - the contextcontextObj - the context ojbjava.lang.Exception - the exceptionStateMachineContext<S,E> read(T contextObj) throws java.lang.Exception
StateMachineContext from a persistent store
with a context object T.contextObj - the context ojbjava.lang.Exception - the exception