Class IntegrationAutoConfiguration.IntegrationTaskSchedulerConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration.IntegrationTaskSchedulerConfiguration
- Enclosing class:
- IntegrationAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnMissingBean(name="taskScheduler")
protected static class IntegrationAutoConfiguration.IntegrationTaskSchedulerConfiguration
extends Object
Expose a standard
TaskScheduler
if the user has not enabled task scheduling explicitly. A
SimpleAsyncTaskScheduler
is exposed if the user enables virtual threads via
spring.threads.virtual.enabled=true
, otherwise
ThreadPoolTaskScheduler
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontaskScheduler
(ThreadPoolTaskSchedulerBuilder threadPoolTaskSchedulerBuilder) taskSchedulerVirtualThreads
(SimpleAsyncTaskSchedulerBuilder simpleAsyncTaskSchedulerBuilder)
-
Constructor Details
-
IntegrationTaskSchedulerConfiguration
protected IntegrationTaskSchedulerConfiguration()
-
-
Method Details
-
taskScheduler
@Bean(name="taskScheduler") @ConditionalOnBean(ThreadPoolTaskSchedulerBuilder.class) @ConditionalOnThreading(PLATFORM) public ThreadPoolTaskScheduler taskScheduler(ThreadPoolTaskSchedulerBuilder threadPoolTaskSchedulerBuilder) -
taskSchedulerVirtualThreads
@Bean(name="taskScheduler") @ConditionalOnBean(SimpleAsyncTaskSchedulerBuilder.class) @ConditionalOnThreading(VIRTUAL) public SimpleAsyncTaskScheduler taskSchedulerVirtualThreads(SimpleAsyncTaskSchedulerBuilder simpleAsyncTaskSchedulerBuilder)
-