Class TaskSchedulerBuilder

java.lang.Object
org.springframework.boot.task.TaskSchedulerBuilder

public class TaskSchedulerBuilder extends Object
Builder that can be used to configure and create a TaskScheduler. Provides convenience methods to set common ThreadPoolTaskScheduler settings. For advanced configuration, consider using TaskSchedulerCustomizer.

In a typical auto-configured Spring Boot application this builder is available as a bean and can be injected whenever a TaskScheduler is needed.

Since:
2.1.0
Author:
Stephane Nicoll