protected class StateMachineObjectSupport.StateMachineListenerRelay extends java.lang.Object implements StateMachineListener<S,E>
| Modifier | Constructor and Description |
|---|---|
protected |
StateMachineListenerRelay() |
| 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.
|
public void stateChanged(State<S,E> from, State<S,E> to)
StateMachineListenerstateChanged in interface StateMachineListener<S,E>from - the source stateto - the target statepublic void stateEntered(State<S,E> state)
StateMachineListenerstateEntered in interface StateMachineListener<S,E>state - the statepublic void stateExited(State<S,E> state)
StateMachineListenerstateExited in interface StateMachineListener<S,E>state - the statepublic void eventNotAccepted(org.springframework.messaging.Message<E> event)
StateMachineListenereventNotAccepted in interface StateMachineListener<S,E>event - the eventpublic void transition(Transition<S,E> transition)
StateMachineListenertransition in interface StateMachineListener<S,E>transition - the transitionpublic void transitionStarted(Transition<S,E> transition)
StateMachineListenertransitionStarted in interface StateMachineListener<S,E>transition - the transitionpublic void transitionEnded(Transition<S,E> transition)
StateMachineListenertransitionEnded in interface StateMachineListener<S,E>transition - the transitionpublic void stateMachineStarted(StateMachine<S,E> stateMachine)
StateMachineListenerstateMachineStarted in interface StateMachineListener<S,E>stateMachine - the statemachinepublic void stateMachineStopped(StateMachine<S,E> stateMachine)
StateMachineListenerstateMachineStopped in interface StateMachineListener<S,E>stateMachine - the statemachinepublic void stateMachineError(StateMachine<S,E> stateMachine, java.lang.Exception exception)
StateMachineListenerstateMachineError in interface StateMachineListener<S,E>stateMachine - the state machineexception - the exceptionpublic void extendedStateChanged(java.lang.Object key,
java.lang.Object value)
StateMachineListenerextendedStateChanged in interface StateMachineListener<S,E>key - the variable keyvalue - the variable valuepublic void stateContext(StateContext<S,E> stateContext)
StateMachineListenerStateContext.Stages about a StateContext.stateContext in interface StateMachineListener<S,E>stateContext - the state context