@ConditionalOnClass(value=org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.class) @Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=TaskExecutionProperties.class) public class TaskExecutionAutoConfiguration extends Object
Auto-configuration
for TaskExecutor
.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 |
---|---|
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
applicationTaskExecutor(TaskExecutorBuilder builder) |
TaskExecutorBuilder |
taskExecutorBuilder(TaskExecutionProperties properties,
org.springframework.beans.factory.ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskDecorator> taskDecorator) |
public static final String APPLICATION_TASK_EXECUTOR_BEAN_NAME
TaskExecutor
.@Bean @ConditionalOnMissingBean public TaskExecutorBuilder taskExecutorBuilder(TaskExecutionProperties properties, org.springframework.beans.factory.ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskDecorator> taskDecorator)
@Lazy @Bean(name={"applicationTaskExecutor","taskExecutor"}) @ConditionalOnMissingBean(value=java.util.concurrent.Executor.class) public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor applicationTaskExecutor(TaskExecutorBuilder builder)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.