S
- the type of stateE
- the type of eventpublic interface ConfigurationConfigurer<S,E> extends AnnotationConfigurerBuilder<StateMachineConfigurationConfigurer<S,E>>
ConfigConfigurer
interface for configuring generic config.Modifier and Type | Method and Description |
---|---|
ConfigurationConfigurer<S,E> |
autoStartup(boolean autoStartup)
Specify if state machine should be started automatically.
|
ConfigurationConfigurer<S,E> |
beanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specify a
BeanFactory . |
ConfigurationConfigurer<S,E> |
listener(StateMachineListener<S,E> listener)
Specify a
StateMachineListener to be registered
with a state machine. |
ConfigurationConfigurer<S,E> |
machineId(java.lang.String id)
Specify a machine identifier.
|
ConfigurationConfigurer<S,E> |
stateDoActionPolicy(StateDoActionPolicy stateDoActionPolicy)
Specify a
StateDoActionPolicy . |
ConfigurationConfigurer<S,E> |
stateDoActionPolicyTimeout(long timeout,
java.util.concurrent.TimeUnit unit)
Specify a timeout used with
StateDoActionPolicy . |
ConfigurationConfigurer<S,E> |
taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
Specify a
TaskExecutor . |
ConfigurationConfigurer<S,E> |
taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
Specify a
TaskScheduler . |
ConfigurationConfigurer<S,E> |
transitionConflictPolicy(TransitionConflictPolicy transitionConflictPolicy)
Specify a
TransitionConflictPolicy . |
and
ConfigurationConfigurer<S,E> machineId(java.lang.String id)
id
- the machine identifierRegion.getId()
ConfigurationConfigurer<S,E> beanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactory
.beanFactory
- the bean factoryConfigurationConfigurer<S,E> taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
TaskExecutor
.taskExecutor
- the task executorConfigurationConfigurer<S,E> taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
TaskScheduler
.taskScheduler
- the task schedulerConfigurationConfigurer<S,E> autoStartup(boolean autoStartup)
autoStartup
- the autoStartup flagConfigurationConfigurer<S,E> listener(StateMachineListener<S,E> listener)
StateMachineListener
to be registered
with a state machine. This method can be called multiple times
to register multiple listeners.listener
- the listener to registerConfigurationConfigurer<S,E> transitionConflictPolicy(TransitionConflictPolicy transitionConflictPolicy)
TransitionConflictPolicy
. Default to TransitionConflictPolicy.CHILD
.transitionConflictPolicy
- the transition conflict policyConfigurationConfigurer<S,E> stateDoActionPolicy(StateDoActionPolicy stateDoActionPolicy)
StateDoActionPolicy
. Defaults to StateDoActionPolicy.IMMEDIATE_CANCEL
.stateDoActionPolicy
- the state do action policyConfigurationConfigurer<S,E> stateDoActionPolicyTimeout(long timeout, java.util.concurrent.TimeUnit unit)
StateDoActionPolicy
.timeout
- the timeoutunit
- the time unit