@ConditionalOnClass(value=org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.class) @Configuration @EnableConfigurationProperties(value=TaskExecutionProperties.class) public class TaskExecutionAutoConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_TASK_EXECUTOR_BEAN_NAME
Bean name of the application
TaskExecutor . |
Constructor and Description |
---|
TaskExecutionAutoConfiguration(TaskExecutionProperties properties,
ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers,
ObjectProvider<TaskDecorator> taskDecorator) |
Modifier and Type | Method and Description |
---|---|
ThreadPoolTaskExecutor |
applicationTaskExecutor(TaskExecutorBuilder builder) |
TaskExecutorBuilder |
taskExecutorBuilder() |
public static final String APPLICATION_TASK_EXECUTOR_BEAN_NAME
TaskExecutor
.public TaskExecutionAutoConfiguration(TaskExecutionProperties properties, ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, ObjectProvider<TaskDecorator> taskDecorator)
@Bean @ConditionalOnMissingBean public TaskExecutorBuilder taskExecutorBuilder()
@Lazy @Bean(name="applicationTaskExecutor") @ConditionalOnMissingBean(value=java.util.concurrent.Executor.class) public ThreadPoolTaskExecutor applicationTaskExecutor(TaskExecutorBuilder builder)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.