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

    Modifier and Type
    Method
    Description
    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.
  • 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 state
      message - the message
      transition - the transition
      stateMachine - the state machine