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.Stage s 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)
StateMachineListener
stateChanged
in interface StateMachineListener<S,E>
from
- the source stateto
- the target statepublic void stateEntered(State<S,E> state)
StateMachineListener
stateEntered
in interface StateMachineListener<S,E>
state
- the statepublic void stateExited(State<S,E> state)
StateMachineListener
stateExited
in interface StateMachineListener<S,E>
state
- the statepublic void eventNotAccepted(org.springframework.messaging.Message<E> event)
StateMachineListener
eventNotAccepted
in interface StateMachineListener<S,E>
event
- the eventpublic void transition(Transition<S,E> transition)
StateMachineListener
transition
in interface StateMachineListener<S,E>
transition
- the transitionpublic void transitionStarted(Transition<S,E> transition)
StateMachineListener
transitionStarted
in interface StateMachineListener<S,E>
transition
- the transitionpublic void transitionEnded(Transition<S,E> transition)
StateMachineListener
transitionEnded
in interface StateMachineListener<S,E>
transition
- the transitionpublic void stateMachineStarted(StateMachine<S,E> stateMachine)
StateMachineListener
stateMachineStarted
in interface StateMachineListener<S,E>
stateMachine
- the statemachinepublic void stateMachineStopped(StateMachine<S,E> stateMachine)
StateMachineListener
stateMachineStopped
in interface StateMachineListener<S,E>
stateMachine
- the statemachinepublic void stateMachineError(StateMachine<S,E> stateMachine, java.lang.Exception exception)
StateMachineListener
stateMachineError
in interface StateMachineListener<S,E>
stateMachine
- the state machineexception
- the exceptionpublic void extendedStateChanged(java.lang.Object key, java.lang.Object value)
StateMachineListener
extendedStateChanged
in interface StateMachineListener<S,E>
key
- the variable keyvalue
- the variable valuepublic void stateContext(StateContext<S,E> stateContext)
StateMachineListener
StateContext.Stage
s about a StateContext
.stateContext
in interface StateMachineListener<S,E>
stateContext
- the state context