mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Polish "Keep milliseconds precision in ThreadPoolTaskScheduleBuilder"
See gh-50225
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ public class ThreadPoolTaskSchedulerBuilder {
|
||||
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
||||
map.from(this.poolSize).to(taskScheduler::setPoolSize);
|
||||
map.from(this.awaitTermination).to(taskScheduler::setWaitForTasksToCompleteOnShutdown);
|
||||
map.from(this.awaitTerminationPeriod).asInt(Duration::toMillis).to(taskScheduler::setAwaitTerminationMillis);
|
||||
map.from(this.awaitTerminationPeriod).as(Duration::toMillis).to(taskScheduler::setAwaitTerminationMillis);
|
||||
map.from(this.threadNamePrefix).to(taskScheduler::setThreadNamePrefix);
|
||||
map.from(this.taskDecorator).to(taskScheduler::setTaskDecorator);
|
||||
if (!CollectionUtils.isEmpty(this.customizers)) {
|
||||
|
||||
Reference in New Issue
Block a user