Uses of Class
org.springframework.boot.task.ThreadPoolTaskExecutorBuilder
Package
Description
Utilities and classes related to task execution and scheduling.
-
Uses of ThreadPoolTaskExecutorBuilder in org.springframework.boot.task
Modifier and TypeMethodDescriptionThreadPoolTaskExecutorBuilder.additionalCustomizers
(Iterable<? extends ThreadPoolTaskExecutorCustomizer> customizers) AddThreadPoolTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.ThreadPoolTaskExecutorBuilder.additionalCustomizers
(ThreadPoolTaskExecutorCustomizer... customizers) AddThreadPoolTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.ThreadPoolTaskExecutorBuilder.allowCoreThreadTimeOut
(boolean allowCoreThreadTimeOut) Set whether core threads are allowed to time out.ThreadPoolTaskExecutorBuilder.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.ThreadPoolTaskExecutorBuilder.awaitTerminationPeriod
(Duration awaitTerminationPeriod) Set the maximum time the executor is supposed to block on shutdown.ThreadPoolTaskExecutorBuilder.corePoolSize
(int corePoolSize) Set the core number of threads.ThreadPoolTaskExecutorBuilder.customizers
(Iterable<? extends ThreadPoolTaskExecutorCustomizer> customizers) Set theThreadPoolTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.ThreadPoolTaskExecutorBuilder.customizers
(ThreadPoolTaskExecutorCustomizer... customizers) Set theThreadPoolTaskExecutorCustomizers
that should be applied to theThreadPoolTaskExecutor
.Set the time limit for which threads may remain idle before being terminated.ThreadPoolTaskExecutorBuilder.maxPoolSize
(int maxPoolSize) Set the maximum allowed number of threads.ThreadPoolTaskExecutorBuilder.queueCapacity
(int queueCapacity) Set the capacity of the queue.ThreadPoolTaskExecutorBuilder.taskDecorator
(TaskDecorator taskDecorator) Set theTaskDecorator
to use ornull
to not use any.ThreadPoolTaskExecutorBuilder.threadNamePrefix
(String threadNamePrefix) Set the prefix to use for the names of newly created threads.