Interface AbstractPersistStateMachineHandler.GenericPersistStateChangeListener<S,E>
- All Known Subinterfaces:
PersistStateMachineHandler.PersistStateChangeListener
- Enclosing class:
- AbstractPersistStateMachineHandler<S,
E>
public static interface AbstractPersistStateMachineHandler.GenericPersistStateChangeListener<S,E>
The listener interface for receiving persistStateChange events.
The class that is interested in processing a persistStateChange
event implements this interface, and the object created
with that class is registered with a component using the
component's
addPersistStateChangeListener
method. When
the persistStateChange event occurs, that object's appropriate
method is invoked.-
Method Summary
-
Method Details
-
onPersist
void onPersist(State<S, E> state, org.springframework.messaging.Message<E> message, Transition<S, E> transition, StateMachine<S, E> stateMachine) Called when state needs to be persisted.- Parameters:
state
- the statemessage
- the messagetransition
- the transitionstateMachine
- the state machine
-