|
|
@@ -1,13 +1,10 @@
|
|
|
package com.cec.plugins.service.task;
|
|
|
|
|
|
-import com.cec.plugins.config.properties.ProjectProperties;
|
|
|
import com.cec.plugins.domain.reported.DeviceDto;
|
|
|
import com.cec.plugins.enumerate.DeviceEnum;
|
|
|
import com.cec.plugins.service.RedisClientSource;
|
|
|
-import lombok.*;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
|
@@ -23,8 +20,6 @@ public class DeviceScheduleService {
|
|
|
private final RedisClientSource redisClientSource;
|
|
|
private final ReportService reportService;
|
|
|
|
|
|
- @Async
|
|
|
- @Scheduled(fixedDelayString = "${project.platform.fixed-delay}")
|
|
|
public void heartbeat() {
|
|
|
DeviceDto dto = new DeviceDto();
|
|
|
for (DeviceEnum deviceEnum : DeviceEnum.values()) {
|