Interface StateMachineEventPublisher
- All Known Implementing Classes:
DefaultStateMachineEventPublisher
public interface StateMachineEventPublisher
Interface for publishing state machine based application events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublishEventNotAccepted(Object source, org.springframework.messaging.Message<?> event) Publish event not accepted event.voidpublishExtendedStateChanged(Object source, Object key, Object value) Publish extended state changed.voidpublishStateChanged(Object source, State<?, ?> sourceState, State<?, ?> targetState) Publish a state changed event.voidpublishStateEntered(Object source, State<?, ?> state) Publish a state entered event.voidpublishStateExited(Object source, State<?, ?> state) Publish a state exited event.voidpublishStateMachineError(Object source, StateMachine<?, ?> stateMachine, Exception exception) Publish a state machine error.voidpublishStateMachineStart(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine start event.voidpublishStateMachineStop(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine stop event.voidpublishTransition(Object source, Transition<?, ?> transition) Publish a transition event.voidpublishTransitionEnd(Object source, Transition<?, ?> transition) Publish a transition end event.voidpublishTransitionStart(Object source, Transition<?, ?> transition) Publish a transition start event.
-
Method Details
-
publishStateChanged
Publish a state changed event.- Parameters:
source- the component generated this eventsourceState- the source statetargetState- the target state
-
publishStateEntered
Publish a state entered event.- Parameters:
source- the sourcestate- the state
-
publishStateExited
Publish a state exited event.- Parameters:
source- the sourcestate- the state
-
publishEventNotAccepted
Publish event not accepted event.- Parameters:
source- the sourceevent- the event
-
publishTransitionStart
Publish a transition start event.- Parameters:
source- the sourcetransition- the transition
-
publishTransitionEnd
Publish a transition end event.- Parameters:
source- the sourcetransition- the transition
-
publishTransition
Publish a transition event.- Parameters:
source- the sourcetransition- the transition
-
publishStateMachineStart
Publish a statemachine start event.- Parameters:
source- the sourcestateMachine- the statemachine
-
publishStateMachineStop
Publish a statemachine stop event.- Parameters:
source- the sourcestateMachine- the statemachine
-
publishStateMachineError
Publish a state machine error.- Parameters:
source- the sourcestateMachine- the state machineexception- the exception
-
publishExtendedStateChanged
Publish extended state changed.- Parameters:
source- the sourcekey- the keyvalue- the value
-