优化国标级联心跳与注册时长

2.6.7
648540858 2023-04-10 09:15:36 +08:00
parent 0858f7995b
commit 1654683da7
2 changed files with 3 additions and 6 deletions

View File

@ -4,7 +4,6 @@ package com.genersoft.iot.vmp.conf.redis;
import com.genersoft.iot.vmp.common.VideoManagerConstants;
import com.genersoft.iot.vmp.service.redisMsg.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
@ -21,7 +20,7 @@ import org.springframework.data.redis.listener.RedisMessageListenerContainer;
*/
@Configuration
@Order(value=1)
public class RedisConfig extends CachingConfigurerSupport {
public class RedisMsgListenConfig {
@Autowired
private RedisGpsMsgListener redisGPSMsgListener;
@ -45,8 +44,6 @@ public class RedisConfig extends CachingConfigurerSupport {
private RedisPushStreamResponseListener redisPushStreamResponseListener;
/**
* redis redis
*

View File

@ -137,7 +137,7 @@ public class PlatformServiceImpl implements IPlatformService {
()-> {
registerTask(parentPlatform);
},
(parentPlatform.getExpires() - 10) *1000);
parentPlatform.getExpires() *1000);
}
@ -183,7 +183,7 @@ public class PlatformServiceImpl implements IPlatformService {
logger.error("[命令发送失败] 国标级联 发送心跳: {}", e.getMessage());
}
},
(parentPlatform.getKeepTimeout() - 10)*1000);
parentPlatform.getKeepTimeout()*1000);
}
}