yeg
2026-09-05 f522c9ffa487e3710d691e8b98df8c4f0cfafd43
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(); }
}