open class TaskExecutorRegistration
A registration class for customizing the properties of ThreadPoolTaskExecutor.
Author
Rossen Stoyanchev
Author
Juergen Hoeller
Since
4.0
TaskExecutorRegistration()
Create a new TaskExecutorRegistration(taskExecutor: ThreadPoolTaskExecutor)
Create a new |
open fun corePoolSize(corePoolSize: Int): TaskExecutorRegistration
Set the core pool size of the ThreadPoolExecutor. NOTE: The core pool size is effectively the max pool size when an unbounded By default this is set to twice the value of |
|
open fun keepAliveSeconds(keepAliveSeconds: Int): TaskExecutorRegistration
Set the time limit for which threads may remain idle before being terminated. If there are more than the core number of threads currently in the pool, after waiting this amount of time without processing a task, excess threads will be terminated. This overrides any value set in the constructor. By default this is set to 60. |
|
open fun maxPoolSize(maxPoolSize: Int): TaskExecutorRegistration
Set the max pool size of the ThreadPoolExecutor. NOTE: When an unbounded By default this is set to |
|
open fun queueCapacity(queueCapacity: Int): TaskExecutorRegistration
Set the queue capacity for the ThreadPoolExecutor. NOTE: when an unbounded By default this is set to |