From c583e5683bac5d11750be01b8a3c4147e8f16026 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 06 十一月 2024 23:21:53 +0800
Subject: [PATCH] 1、opc订阅服务为阻塞模式,配置需要开启多线程 2、新增订阅回调函数,用于执行任务,完成任务时调用 3、目前测试效果来看,一个定时任务只能有一个订阅任务,可订阅多个节点,当某个节点发生变化时,回调任务仅获取变化节点的信息
---
hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/application.yml | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/application.yml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/application.yml
index 386bbaf..54b8ece 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/application.yml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/application.yml
@@ -8,6 +8,11 @@
name: cacheGlass
liquibase:
enabled: false
+ task:
+ scheduling:
+ pool:
+ size: 10
+ thread-name-prefix: task-cache
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
# configuration:
@@ -28,8 +33,8 @@
two: #绗簩鏉$(杈圭嚎鐨勬渶灏忓昂瀵镐俊鎭�
firstLength: 400
secondLength: 400
- glassGap: 300
- cellLength: 2700
+ glassGap: 300
+ cellLength: 2700
sequence:
order: false
kangaroohy:
@@ -38,7 +43,8 @@
primary: default
config:
default:
- endpoint: opc.tcp://zidonghua:49320
+ endpoint: opc.tcp://192.168.10.241:49320
security-policy: basic256sha256
- username: zsh
+ username: liu
password: 1qaz2wsx3edc4rfv
+
--
Gitblit v1.8.0