ThreadPoolTaskSchedulerBuilder
Builder that can be used to configure and create a ThreadPoolTaskScheduler. Provides convenience methods to set common ThreadPoolTaskScheduler settings. For advanced configuration, consider using ThreadPoolTaskSchedulerCustomizer.
In a typical auto-configured Spring Boot application this builder is available as a bean and can be injected whenever a ThreadPoolTaskScheduler is needed.
Author
Stephane Nicoll
Since
3.2.0
Functions
Link copied to clipboard
open fun additionalCustomizers(customizers: Iterable<out ThreadPoolTaskSchedulerCustomizer>): ThreadPoolTaskSchedulerBuilder
open fun additionalCustomizers(customizers: Array<ThreadPoolTaskSchedulerCustomizer>): ThreadPoolTaskSchedulerBuilder
Add threadPoolTaskSchedulerCustomizers that should be applied to the ThreadPoolTaskScheduler.
Link copied to clipboard
Set whether the executor should wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.
Link copied to clipboard
Set the maximum time the executor is supposed to block on shutdown.
Link copied to clipboard
Build a new ThreadPoolTaskScheduler instance and configure it using this builder.
Link copied to clipboard
Configure the provided ThreadPoolTaskScheduler instance using this builder.
Link copied to clipboard
open fun customizers(customizers: Iterable<out ThreadPoolTaskSchedulerCustomizer>): ThreadPoolTaskSchedulerBuilder
open fun customizers(customizers: Array<ThreadPoolTaskSchedulerCustomizer>): ThreadPoolTaskSchedulerBuilder
Set the threadPoolTaskSchedulerCustomizers that should be applied to the ThreadPoolTaskScheduler.
Link copied to clipboard
Set the maximum allowed number of threads.
Link copied to clipboard
Set the TaskDecorator to be applied to the ThreadPoolTaskScheduler.
Link copied to clipboard
Set the prefix to use for the names of newly created threads.