#update 地图统一推送功能
This commit is contained in:
@@ -42,6 +42,9 @@ public class InitThread implements ApplicationRunner {
|
||||
@Resource(name = FastBeeConstant.TASK.DEVICE_HEARTBEAT_MONITOR)
|
||||
private Executor deviceHeartBeatMonitorExecutor;
|
||||
|
||||
@Resource(name = FastBeeConstant.TASK.MAP_MESSAGE_PUSH)
|
||||
private Executor mapMessagePushExecutor;
|
||||
|
||||
@Resource(name = FastBeeConstant.TASK.COMMON_DEVICE_MONITOR)
|
||||
private Executor commonDeviceMonitorExecutor;
|
||||
|
||||
@@ -127,6 +130,11 @@ public class InitThread implements ApplicationRunner {
|
||||
|
||||
GlobalMemory.initMqttDeviceMonitor(mqttHostUrl, mqttClientId, mqttUsername, mqttPassword);
|
||||
|
||||
// 地图监控推送
|
||||
mapMessagePushExecutor.execute(() -> {
|
||||
deviceThreadService.mapMessagePush();
|
||||
});
|
||||
|
||||
// 上位机设备心跳监控
|
||||
deviceHeartBeatMonitorExecutor.execute(() -> {
|
||||
deviceThreadService.heartBeatMonitor();
|
||||
|
||||
Reference in New Issue
Block a user