@ConditionalOnClass(value=org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.class) @Configuration @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(TaskExecutionProperties properties,
org.springframework.beans.factory.ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers,
org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskDecorator> taskDecorator) |
Modifier and Type | Method and Description |
---|---|
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
applicationTaskExecutor(TaskExecutorBuilder builder) |
TaskExecutorBuilder |
taskExecutorBuilder() |
public static final String APPLICATION_TASK_EXECUTOR_BEAN_NAME
TaskExecutor
.public TaskExecutionAutoConfiguration(TaskExecutionProperties properties, org.springframework.beans.factory.ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, org.springframework.beans.factory.ObjectProvider<org.springframework.core.task.TaskDecorator> taskDecorator)
@Bean @ConditionalOnMissingBean public TaskExecutorBuilder taskExecutorBuilder()
@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.