S - the type of stateE - the type of eventpublic interface StateMachineSerialisationService<S,E>
| Modifier and Type | Method and Description |
|---|---|
StateMachineContext<S,E> |
deserialiseStateMachineContext(byte[] data)
Deserialise state machine context from byte array.
|
byte[] |
serialiseStateMachineContext(StateMachineContext<S,E> context)
Serialise state machine context into byte array.
|
byte[] serialiseStateMachineContext(StateMachineContext<S,E> context) throws java.lang.Exception
context - the contextjava.lang.Exception - the exception when serialisation failsStateMachineContext<S,E> deserialiseStateMachineContext(byte[] data) throws java.lang.Exception
data - the datajava.lang.Exception - the exception when deserialisation fails