yeg
2026-09-05 92f32acd847ea1700590bc669750f23ef499840e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.battery.business.runtime;
 
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.context.annotation.Profile;
import com.battery.business.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.captureReceivedData(); }
}