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 TypeMethodDescriptionvoid
addStateMachineInterceptor
(StateMachineInterceptor<S, E> interceptor) Adds the state machine interceptor.void
addStateMachineMonitor
(StateMachineMonitor<S, E> monitor) Adds the state machine monitor.void
resetStateMachine
(StateMachineContext<S, E> stateMachineContext) Deprecated.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.void
setInitialEnabled
(boolean enabled) Sets if initial state is enabled when a state machine is using sub states.void
setParentMachine
(StateMachine<S, E> stateMachine) Sets the parent machine.void
setRelay
(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
-