| | |
| | | import com.xcong.excoin.modules.station.model.GateStatsEvent; |
| | | import com.xcong.excoin.modules.station.model.HeartbeatMsg; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | * JAR 侧 — 心跳定时发送(每 30s) |
| | | */ |
| | | @Slf4j |
| | | @ConditionalOnProperty(name = "app.gate.enabled", havingValue = "true", matchIfMissing = true) |
| | | @Component |
| | | @EnableScheduling |
| | | public class HeartbeatScheduler { |