Class ThreadPoolTaskExecutorBuilder

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

public class ThreadPoolTaskExecutorBuilder extends Object
Builder that can be used to configure and create a ThreadPoolTaskExecutor. Provides convenience methods to set common ThreadPoolTaskExecutor settings and register taskDecorator(TaskDecorator)). For advanced configuration, consider using ThreadPoolTaskExecutorCustomizer.

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

Since:
3.2.0
Author:
Stephane Nicoll, Filip Hrisafov