SimpleAsyncTaskExecutorBuilder

Builder that can be used to configure and create a SimpleAsyncTaskExecutor. Provides convenience methods to set common SimpleAsyncTaskExecutor settings and register taskDecorator). For advanced configuration, consider using SimpleAsyncTaskExecutorCustomizer.

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

Author

Stephane Nicoll

Filip Hrisafov

Moritz Halbritter

Since

3.2.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Build a new SimpleAsyncTaskExecutor instance and configure it using this builder.
open fun <T : SimpleAsyncTaskExecutor?> build(taskExecutorClass: Class<T>): T
Build a new SimpleAsyncTaskExecutor instance of the specified type and configure it using this builder.
Link copied to clipboard
Set the concurrency limit.
Link copied to clipboard
open fun <T : SimpleAsyncTaskExecutor?> configure(taskExecutor: T): T
Configure the provided SimpleAsyncTaskExecutor instance using this builder.
Link copied to clipboard
Set the TaskDecorator to use or null to not use any.
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.