Interface StateMachineEventPublisher
- All Known Implementing Classes:
DefaultStateMachineEventPublisher
public interface StateMachineEventPublisher
Interface for publishing state machine based application events.
- Author:
- Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publishEventNotAccepted
(Object source, org.springframework.messaging.Message<?> event) Publish event not accepted event.void
publishExtendedStateChanged
(Object source, Object key, Object value) Publish extended state changed.void
publishStateChanged
(Object source, State<?, ?> sourceState, State<?, ?> targetState) Publish a state changed event.void
publishStateEntered
(Object source, State<?, ?> state) Publish a state entered event.void
publishStateExited
(Object source, State<?, ?> state) Publish a state exited event.void
publishStateMachineError
(Object source, StateMachine<?, ?> stateMachine, Exception exception) Publish a state machine error.void
publishStateMachineStart
(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine start event.void
publishStateMachineStop
(Object source, StateMachine<?, ?> stateMachine) Publish a statemachine stop event.void
publishTransition
(Object source, Transition<?, ?> transition) Publish a transition event.void
publishTransitionEnd
(Object source, Transition<?, ?> transition) Publish a transition end event.void
publishTransitionStart
(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
-