Interface StateMachineListener<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Known Implementing Classes:
CompositeStateMachineListener,LatchStateMachineListener,StateMachineListenerAdapter,StateMachineObjectSupport.StateMachineListenerRelay
public interface StateMachineListener<S,E>
StateMachineListener for various state machine events.- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionvoideventNotAccepted(org.springframework.messaging.Message<E> event) Notified when event was not accepted.voidextendedStateChanged(Object key, Object value) Notified when extended state variable is either added, modified or removed.voidNotified when state is changed.voidstateContext(StateContext<S, E> stateContext) Notified on variousStateContext.Stages about aStateContext.voidstateEntered(State<S, E> state) Notified when state is entered.voidstateExited(State<S, E> state) Notified when state is exited.voidstateMachineError(StateMachine<S, E> stateMachine, Exception exception) Notified when statemachine enters error it can't recover from.voidstateMachineStarted(StateMachine<S, E> stateMachine) Notified when statemachine startsvoidstateMachineStopped(StateMachine<S, E> stateMachine) Notified when statemachine stopsvoidtransition(Transition<S, E> transition) Notified when transition happened.voidtransitionEnded(Transition<S, E> transition) Notified when transition ended.voidtransitionStarted(Transition<S, E> transition) Notified when transition started.
-
Method Details
-
stateChanged
Notified when state is changed.- Parameters:
from- the source stateto- the target state
-
stateEntered
Notified when state is entered.- Parameters:
state- the state
-
stateExited
Notified when state is exited.- Parameters:
state- the state
-
eventNotAccepted
Notified when event was not accepted.- Parameters:
event- the event
-
transition
Notified when transition happened.- Parameters:
transition- the transition
-
transitionStarted
Notified when transition started.- Parameters:
transition- the transition
-
transitionEnded
Notified when transition ended.- Parameters:
transition- the transition
-
stateMachineStarted
Notified when statemachine starts- Parameters:
stateMachine- the statemachine
-
stateMachineStopped
Notified when statemachine stops- Parameters:
stateMachine- the statemachine
-
stateMachineError
Notified when statemachine enters error it can't recover from.- Parameters:
stateMachine- the state machineexception- the exception
-
extendedStateChanged
Notified when extended state variable is either added, modified or removed.- Parameters:
key- the variable keyvalue- the variable value
-
stateContext
Notified on variousStateContext.Stages about aStateContext.- Parameters:
stateContext- the state context
-