类的使用
org.springframework.boot.task.ThreadPoolTaskSchedulerBuilder
程序包
说明
Auto-configuration for Spring Integration.
Utilities and classes related to task execution and scheduling.
-
org.springframework.boot.autoconfigure.integration中ThreadPoolTaskSchedulerBuilder的使用
修饰符和类型方法说明IntegrationAutoConfiguration.IntegrationTaskSchedulerConfiguration.taskScheduler
(ThreadPoolTaskSchedulerBuilder threadPoolTaskSchedulerBuilder) -
org.springframework.boot.task中ThreadPoolTaskSchedulerBuilder的使用
修饰符和类型方法说明ThreadPoolTaskSchedulerBuilder.additionalCustomizers
(Iterable<? extends ThreadPoolTaskSchedulerCustomizer> customizers) AddthreadPoolTaskSchedulerCustomizers
that should be applied to theThreadPoolTaskScheduler
.ThreadPoolTaskSchedulerBuilder.additionalCustomizers
(ThreadPoolTaskSchedulerCustomizer... customizers) AddthreadPoolTaskSchedulerCustomizers
that should be applied to theThreadPoolTaskScheduler
.ThreadPoolTaskSchedulerBuilder.awaitTermination
(boolean awaitTermination) Set whether the executor should wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.ThreadPoolTaskSchedulerBuilder.awaitTerminationPeriod
(Duration awaitTerminationPeriod) Set the maximum time the executor is supposed to block on shutdown.ThreadPoolTaskSchedulerBuilder.customizers
(Iterable<? extends ThreadPoolTaskSchedulerCustomizer> customizers) Set thethreadPoolTaskSchedulerCustomizers
that should be applied to theThreadPoolTaskScheduler
.ThreadPoolTaskSchedulerBuilder.customizers
(ThreadPoolTaskSchedulerCustomizer... customizers) Set thethreadPoolTaskSchedulerCustomizers
that should be applied to theThreadPoolTaskScheduler
.ThreadPoolTaskSchedulerBuilder.poolSize
(int poolSize) Set the maximum allowed number of threads.ThreadPoolTaskSchedulerBuilder.threadNamePrefix
(String threadNamePrefix) Set the prefix to use for the names of newly created threads.