S - the type of stateE - the type of eventpublic interface StateMachineListener<S,E>
StateMachineListener for various state machine events.| Modifier and Type | Method and Description |
|---|---|
void |
eventNotAccepted(org.springframework.messaging.Message<E> event)
Notified when event was not accepted.
|
void |
extendedStateChanged(java.lang.Object key,
java.lang.Object value)
Notified when extended state variable is either added, modified or removed.
|
void |
stateChanged(State<S,E> from,
State<S,E> to)
Notified when state is changed.
|
void |
stateContext(StateContext<S,E> stateContext)
Notified on various
StateContext.Stages about a StateContext. |
void |
stateEntered(State<S,E> state)
Notified when state is entered.
|
void |
stateExited(State<S,E> state)
Notified when state is exited.
|
void |
stateMachineError(StateMachine<S,E> stateMachine,
java.lang.Exception exception)
Notified when statemachine enters error it can't recover from.
|
void |
stateMachineStarted(StateMachine<S,E> stateMachine)
Notified when statemachine starts
|
void |
stateMachineStopped(StateMachine<S,E> stateMachine)
Notified when statemachine stops
|
void |
transition(Transition<S,E> transition)
Notified when transition happened.
|
void |
transitionEnded(Transition<S,E> transition)
Notified when transition ended.
|
void |
transitionStarted(Transition<S,E> transition)
Notified when transition started.
|
void stateChanged(State<S,E> from, State<S,E> to)
from - the source stateto - the target statevoid stateEntered(State<S,E> state)
state - the statevoid stateExited(State<S,E> state)
state - the statevoid eventNotAccepted(org.springframework.messaging.Message<E> event)
event - the eventvoid transition(Transition<S,E> transition)
transition - the transitionvoid transitionStarted(Transition<S,E> transition)
transition - the transitionvoid transitionEnded(Transition<S,E> transition)
transition - the transitionvoid stateMachineStarted(StateMachine<S,E> stateMachine)
stateMachine - the statemachinevoid stateMachineStopped(StateMachine<S,E> stateMachine)
stateMachine - the statemachinevoid stateMachineError(StateMachine<S,E> stateMachine, java.lang.Exception exception)
stateMachine - the state machineexception - the exceptionvoid extendedStateChanged(java.lang.Object key,
java.lang.Object value)
key - the variable keyvalue - the variable valuevoid stateContext(StateContext<S,E> stateContext)
StateContext.Stages about a StateContext.stateContext - the state context