@ConditionalOnClass(value=org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.class) @Configuration(proxyBeanMethods=false) @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() |
Modifier and Type | Method and Description |
---|---|
ThreadPoolTaskExecutor |
applicationTaskExecutor(TaskExecutorBuilder builder) |
TaskExecutorBuilder |
taskExecutorBuilder(TaskExecutionProperties properties,
ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers,
ObjectProvider<TaskDecorator> taskDecorator) |
public static final String APPLICATION_TASK_EXECUTOR_BEAN_NAME
TaskExecutor
.@Bean @ConditionalOnMissingBean public TaskExecutorBuilder taskExecutorBuilder(TaskExecutionProperties properties, ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, ObjectProvider<TaskDecorator> taskDecorator)
@Lazy @Bean(name={"applicationTaskExecutor","taskExecutor"}) @ConditionalOnMissingBean(value=java.util.concurrent.Executor.class) public ThreadPoolTaskExecutor applicationTaskExecutor(TaskExecutorBuilder builder)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.