Interface StateMachineAccess<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Superinterfaces:
ReactiveStateMachineAccess<S,E>
All Known Implementing Classes:
AbstractStateMachine, ObjectStateMachine

public interface StateMachineAccess<S,E> extends ReactiveStateMachineAccess<S,E>
Functional interface exposing StateMachine internals.
Author:
Janne Valkealahti
  • Method Details

    • setRelay

      void setRelay(StateMachine<S,E> stateMachine)
      Sets the relay state machine.
      Parameters:
      stateMachine - the state machine
    • resetStateMachine

      @Deprecated void resetStateMachine(StateMachineContext<S,E> stateMachineContext)
      Deprecated.
      Reset state machine.
      Parameters:
      stateMachineContext - the state machine context
      See Also:
    • addStateMachineInterceptor

      void addStateMachineInterceptor(StateMachineInterceptor<S,E> interceptor)
      Adds the state machine interceptor.
      Parameters:
      interceptor - the interceptor
    • addStateMachineMonitor

      void addStateMachineMonitor(StateMachineMonitor<S,E> monitor)
      Adds the state machine monitor.
      Parameters:
      monitor - the monitor
    • setInitialEnabled

      void setInitialEnabled(boolean enabled)
      Sets if initial state is enabled when a state machine is using sub states.
      Parameters:
      enabled - the new initial enabled
    • setForwardedInitialEvent

      void setForwardedInitialEvent(org.springframework.messaging.Message<E> message)
      Set initial forwarded event which is used for passing in event and its headers for actions executed when sub state is entered via initial transition.
      Parameters:
      message - the forwarded message
    • setParentMachine

      void setParentMachine(StateMachine<S,E> stateMachine)
      Sets the parent machine.
      Parameters:
      stateMachine - the state machine