Interface ConfigurationConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Superinterfaces:
AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,
E>>
- All Known Implementing Classes:
DefaultConfigurationConfigurer
public interface ConfigurationConfigurer<S,E>
extends AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,E>>
Base
ConfigConfigurer
interface for configuring generic config.-
Method Summary
Modifier and TypeMethodDescriptionautoStartup
(boolean autoStartup) Specify if state machine should be started automatically.beanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Specify aBeanFactory
.listener
(StateMachineListener<S, E> listener) Specify aStateMachineListener
to be registered with a state machine.Specify a machine identifier.regionExecutionPolicy
(RegionExecutionPolicy regionExecutionPolicy) Specify aRegionExecutionPolicy
.stateDoActionPolicy
(StateDoActionPolicy stateDoActionPolicy) Specify aStateDoActionPolicy
.stateDoActionPolicyTimeout
(long timeout, TimeUnit unit) Specify a timeout used withStateDoActionPolicy
.transitionConflictPolicy
(TransitionConflictPolicy transitionConflictPolicy) Specify aTransitionConflictPolicy
.Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Method Details
-
machineId
Specify a machine identifier.- Parameters:
id
- the machine identifier- Returns:
- configurer for chaining
- See Also:
-
beanFactory
Specify aBeanFactory
.- Parameters:
beanFactory
- the bean factory- Returns:
- configurer for chaining
-
autoStartup
Specify if state machine should be started automatically. On default state machine is not started automatically.- Parameters:
autoStartup
- the autoStartup flag- Returns:
- configurer for chaining
-
listener
Specify aStateMachineListener
to be registered with a state machine. This method can be called multiple times to register multiple listeners.- Parameters:
listener
- the listener to register- Returns:
- the configuration configurer
-
transitionConflictPolicy
ConfigurationConfigurer<S,E> transitionConflictPolicy(TransitionConflictPolicy transitionConflictPolicy) Specify aTransitionConflictPolicy
. Default toTransitionConflictPolicy.CHILD
.- Parameters:
transitionConflictPolicy
- the transition conflict policy- Returns:
- the configuration configurer
-
stateDoActionPolicy
Specify aStateDoActionPolicy
. Defaults toStateDoActionPolicy.IMMEDIATE_CANCEL
.- Parameters:
stateDoActionPolicy
- the state do action policy- Returns:
- the configuration configurer
-
stateDoActionPolicyTimeout
Specify a timeout used withStateDoActionPolicy
.- Parameters:
timeout
- the timeoutunit
- the time unit- Returns:
- the configuration configurer
-
regionExecutionPolicy
Specify aRegionExecutionPolicy
. Default toRegionExecutionPolicy.SEQUENTIAL
.- Parameters:
regionExecutionPolicy
- the region execution policy- Returns:
- the configuration configurer
-