Interface StateMachineEventPublisher

All Known Implementing Classes:
DefaultStateMachineEventPublisher

public interface StateMachineEventPublisher
Interface for publishing state machine based application events.
Author:
Janne Valkealahti
  • Method Details

    • publishStateChanged

      void publishStateChanged(Object source, State<?,?> sourceState, State<?,?> targetState)
      Publish a state changed event.
      Parameters:
      source - the component generated this event
      sourceState - the source state
      targetState - the target state
    • publishStateEntered

      void publishStateEntered(Object source, State<?,?> state)
      Publish a state entered event.
      Parameters:
      source - the source
      state - the state
    • publishStateExited

      void publishStateExited(Object source, State<?,?> state)
      Publish a state exited event.
      Parameters:
      source - the source
      state - the state
    • publishEventNotAccepted

      void publishEventNotAccepted(Object source, org.springframework.messaging.Message<?> event)
      Publish event not accepted event.
      Parameters:
      source - the source
      event - the event
    • publishTransitionStart

      void publishTransitionStart(Object source, Transition<?,?> transition)
      Publish a transition start event.
      Parameters:
      source - the source
      transition - the transition
    • publishTransitionEnd

      void publishTransitionEnd(Object source, Transition<?,?> transition)
      Publish a transition end event.
      Parameters:
      source - the source
      transition - the transition
    • publishTransition

      void publishTransition(Object source, Transition<?,?> transition)
      Publish a transition event.
      Parameters:
      source - the source
      transition - the transition
    • publishStateMachineStart

      void publishStateMachineStart(Object source, StateMachine<?,?> stateMachine)
      Publish a statemachine start event.
      Parameters:
      source - the source
      stateMachine - the statemachine
    • publishStateMachineStop

      void publishStateMachineStop(Object source, StateMachine<?,?> stateMachine)
      Publish a statemachine stop event.
      Parameters:
      source - the source
      stateMachine - the statemachine
    • publishStateMachineError

      void publishStateMachineError(Object source, StateMachine<?,?> stateMachine, Exception exception)
      Publish a state machine error.
      Parameters:
      source - the source
      stateMachine - the state machine
      exception - the exception
    • publishExtendedStateChanged

      void publishExtendedStateChanged(Object source, Object key, Object value)
      Publish extended state changed.
      Parameters:
      source - the source
      key - the key
      value - the value