浏览代码

添加websocket预警

hfxc226 2 年之前
父节点
当前提交
c1fb8529cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform-opc/src/main/java/com/platform/opc/servie/OpcTask.java

+ 1 - 1
platform-opc/src/main/java/com/platform/opc/servie/OpcTask.java

@@ -95,7 +95,7 @@ public class OpcTask {
      * 1: 分组获取数据
      * 1: 分组获取数据
      * a:保存到redis
      * a:保存到redis
      */
      */
-    @Scheduled(fixedDelay = 1000)  //间隔1秒
+    @Scheduled(fixedDelay = 2000)  //间隔1秒
     public void getValue() throws JIException {
     public void getValue() throws JIException {
         String key = RedisUtils.getString(RedisKeyConstants.redis_opc_update_flag);
         String key = RedisUtils.getString(RedisKeyConstants.redis_opc_update_flag);
         String ok = RedisUtils.getString(RedisKeyConstants.redis_ok);
         String ok = RedisUtils.getString(RedisKeyConstants.redis_ok);