ThreadPoolTaskSchedulerBuilder
constructor()
constructor(poolSize: Integer, awaitTermination: Boolean, awaitTerminationPeriod: Duration, threadNamePrefix: String, taskSchedulerCustomizers: Set<ThreadPoolTaskSchedulerCustomizer>)
Deprecated (for removal)
Since version 3.5.0
Constructs a new ThreadPoolTaskSchedulerBuilder
instance with the specified configuration.
Deprecated
since 3.5.0 for removal in 3.7.0 in favor of the default constructor
Parameters
poolSize
the maximum allowed number of threads
awaitTermination
whether the executor should wait for scheduled tasks tocomplete on shutdown
awaitTerminationPeriod
the maximum time the executor is supposed to block onshutdown
threadNamePrefix
the prefix to use for the names of newly created threads
taskSchedulerCustomizers
the customizers to apply to the ThreadPoolTaskScheduler