Revert "update: 改scheduleAtFixedRate /scheduleWithFixedDelay 以long 表示时间间隔的方法,改成java.time.Duration"

This reverts commit d0b6f697b0.
This commit is contained in:
zwh
2025-10-11 16:04:41 +08:00
parent d0b6f697b0
commit 06c321a6e1
@@ -92,8 +92,8 @@ public class EventSourceCollectService implements ApplicationReadyListener {
if ("millisecond".equals(source.getPeriodType())) {
// 毫秒级采集
// spring6.0 弃用 scheduleAtFixedRate /scheduleWithFixedDelay
// 以long 表示时间间隔的方法,改成java.time.Duration
// spring6.0 弃用 scheduleAtFixedRate /scheduleWithFixedDelay 以long 表示时间间隔的方法,改成java.time.Duration
if (source.getRateType()==1) {
scheduledFuture = scheduler.scheduleAtFixedRate(
new EventSourceTask(scheduler, source, cacheManager),