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> |
taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
Specify a
TaskExecutor . |
ConfigurationConfigurer<S,E> |
taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
Specify a
TaskScheduler . |
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 register