Interface StateMachineAccess<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Superinterfaces:
ReactiveStateMachineAccess<S,E>
- All Known Implementing Classes:
AbstractStateMachine,ObjectStateMachine
Functional interface exposing
StateMachine internals.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateMachineInterceptor(StateMachineInterceptor<S, E> interceptor) Adds the state machine interceptor.voidaddStateMachineMonitor(StateMachineMonitor<S, E> monitor) Adds the state machine monitor.voidresetStateMachine(StateMachineContext<S, E> stateMachineContext) Deprecated.voidsetForwardedInitialEvent(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.voidsetInitialEnabled(boolean enabled) Sets if initial state is enabled when a state machine is using sub states.voidsetParentMachine(StateMachine<S, E> stateMachine) Sets the parent machine.voidsetRelay(StateMachine<S, E> stateMachine) Sets the relay state machine.Methods inherited from interface org.springframework.statemachine.access.ReactiveStateMachineAccess
resetStateMachineReactively
-
Method Details
-
setRelay
Sets the relay state machine.- Parameters:
stateMachine- the state machine
-
resetStateMachine
Deprecated.Reset state machine.- Parameters:
stateMachineContext- the state machine context- See Also:
-
addStateMachineInterceptor
Adds the state machine interceptor.- Parameters:
interceptor- the interceptor
-
addStateMachineMonitor
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
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
Sets the parent machine.- Parameters:
stateMachine- the state machine
-