public interface Persister<T>
| Modifier and Type | Method and Description |
|---|---|
State<T> |
getCurrent(T stateful)
Returns the current state.
|
void |
setCurrent(T stateful,
State<T> current,
State<T> next)
Set the current state to the next state.
|
State<T> getCurrent(T stateful)
stateful - Stateful Entityvoid setCurrent(T stateful, State<T> current, State<T> next) throws StaleStateException
stateful - StatefulEntitycurrent - Expected current State of the Stateful Entitynext - The value of the updated StateStaleStateException - thrown if the state value of the Stateful Entity is not equal to the passed in current
valueCopyright © 2015. All rights reserved.