Class TaskExecutionAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration
@ConditionalOnClass(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.class)
@AutoConfiguration
@EnableConfigurationProperties(TaskExecutionProperties.class)
@Import({org.springframework.boot.autoconfigure.task.TaskExecutorConfigurations.VirtualThreadTaskExecutorConfiguration.class,org.springframework.boot.autoconfigure.task.TaskExecutorConfigurations.ThreadPoolTaskExecutorConfiguration.class})
public class TaskExecutionAutoConfiguration
extends Object
- Since:
- 2.1.0
- Author:
- Stephane Nicoll, Camille Vienot
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontaskExecutorBuilder
(TaskExecutionProperties properties, ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, ObjectProvider<TaskDecorator> taskDecorator)
-
Field Details
-
APPLICATION_TASK_EXECUTOR_BEAN_NAME
Bean name of the applicationTaskExecutor
.- See Also:
-
-
Constructor Details
-
TaskExecutionAutoConfiguration
public TaskExecutionAutoConfiguration()
-
-
Method Details
-
taskExecutorBuilder
@Bean @ConditionalOnMissingBean public TaskExecutorBuilder taskExecutorBuilder(TaskExecutionProperties properties, ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, ObjectProvider<TaskDecorator> taskDecorator) -
applicationTaskExecutor
@Lazy @Bean(name={"applicationTaskExecutor","taskExecutor"}) @ConditionalOnMissingBean(java.util.concurrent.Executor.class) public ThreadPoolTaskExecutor applicationTaskExecutor(TaskExecutorBuilder builder)
-