Uses of Class
org.springframework.boot.task.TaskExecutorBuilder
Package
Description
Auto-configuration for task execution and scheduling.
Utilities and classes related to task execution and scheduling.
-
Uses of TaskExecutorBuilder in org.springframework.boot.autoconfigure.task
Modifier and TypeMethodDescriptionTaskExecutionAutoConfiguration.taskExecutorBuilder
(TaskExecutionProperties properties, ObjectProvider<TaskExecutorCustomizer> taskExecutorCustomizers, ObjectProvider<TaskDecorator> taskDecorator) Modifier and TypeMethodDescriptionTaskExecutionAutoConfiguration.applicationTaskExecutor
(TaskExecutorBuilder builder) -
Uses of TaskExecutorBuilder in org.springframework.boot.task
Modifier and TypeMethodDescriptionTaskExecutorBuilder.additionalCustomizers
(Iterable<TaskExecutorCustomizer> customizers) AddTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.TaskExecutorBuilder.additionalCustomizers
(TaskExecutorCustomizer... customizers) AddTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.TaskExecutorBuilder.allowCoreThreadTimeOut
(boolean allowCoreThreadTimeOut) Set whether core threads are allowed to time out.TaskExecutorBuilder.awaitTermination
(boolean awaitTermination) Set whether the executor should wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.TaskExecutorBuilder.awaitTerminationPeriod
(Duration awaitTerminationPeriod) Set the maximum time the executor is supposed to block on shutdown.TaskExecutorBuilder.corePoolSize
(int corePoolSize) Set the core number of threads.TaskExecutorBuilder.customizers
(Iterable<TaskExecutorCustomizer> customizers) Set theTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.TaskExecutorBuilder.customizers
(TaskExecutorCustomizer... customizers) Set theTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.Set the time limit for which threads may remain idle before being terminated.TaskExecutorBuilder.maxPoolSize
(int maxPoolSize) Set the maximum allowed number of threads.TaskExecutorBuilder.queueCapacity
(int queueCapacity) Set the capacity of the queue.TaskExecutorBuilder.taskDecorator
(TaskDecorator taskDecorator) Set theTaskDecorator
to use ornull
to not use any.TaskExecutorBuilder.threadNamePrefix
(String threadNamePrefix) Set the prefix to use for the names of newly created threads.