package com.ruoyi.config; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.context.annotation.Profile; import com.ruoyi.system.service.ITestDataReceptionService; /** 开发环境按模拟器槽位主动形成完整实时采集快照;生产轮询周期由真实设备调度器决定。 */ @Component @Profile("dev-simulator") public class DevelopmentRealtimeSnapshotScheduler { private final ITestDataReceptionService reception; public DevelopmentRealtimeSnapshotScheduler(ITestDataReceptionService reception) { this.reception = reception; } @Scheduled(fixedDelay = 100) public void capture() { reception.captureDevelopmentRealtimeSnapshots(); } }