SimpleAsyncTaskSchedulerBuilder
Builder that can be used to configure and create a SimpleAsyncTaskScheduler. Provides convenience methods to set common SimpleAsyncTaskScheduler settings. For advanced configuration, consider using SimpleAsyncTaskSchedulerCustomizer.
In a typical auto-configured Spring Boot application this builder is available as a bean and can be injected whenever a SimpleAsyncTaskScheduler is needed.
Author
Stephane Nicoll
Moritz Halbritter
Since
3.2.0
Functions
Link copied to clipboard
open fun additionalCustomizers(customizers: Iterable<out SimpleAsyncTaskSchedulerCustomizer>): SimpleAsyncTaskSchedulerBuilder
open fun additionalCustomizers(customizers: Array<SimpleAsyncTaskSchedulerCustomizer>): SimpleAsyncTaskSchedulerBuilder
Add customizers that should be applied to the SimpleAsyncTaskScheduler.
Link copied to clipboard
Build a new SimpleAsyncTaskScheduler instance and configure it using this builder.
Link copied to clipboard
Set the concurrency limit.
Link copied to clipboard
Configure the provided SimpleAsyncTaskScheduler instance using this builder.
Link copied to clipboard
open fun customizers(customizers: Iterable<out SimpleAsyncTaskSchedulerCustomizer>): SimpleAsyncTaskSchedulerBuilder
open fun customizers(customizers: Array<SimpleAsyncTaskSchedulerCustomizer>): SimpleAsyncTaskSchedulerBuilder
Set the customizers that should be applied to the SimpleAsyncTaskScheduler.
Link copied to clipboard
Set the task decorator to be used by the SimpleAsyncTaskScheduler.
Link copied to clipboard
Set the task termination timeout.
Link copied to clipboard
Set the prefix to use for the names of newly created threads.
Link copied to clipboard
Set whether to use virtual threads.