yeg
2026-09-02 c2dd019c1fddaeae412e2b6f44fb86ff0dc635d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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(); }
}