S
- the in-memory state class.PS
- the persistence state class (usually protobuf-generated).public abstract class AbstractStateSerializer<S,PS> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStateSerializer.Mapping<S,PS> |
Constructor and Description |
---|
AbstractStateSerializer() |
Modifier and Type | Method and Description |
---|---|
S |
deserialize(PS persistedState)
Deserializes the persisted state
PS to the in-memory state class S . |
PS |
serialize(S state)
Serializes the in-memory state
S to the state class to persist PS . |