From 33ddf707b56c305d131e59a2c8a1833ac7ba627d Mon Sep 17 00:00:00 2001
From: lawrencehj <65707521+lawrencehj@users.noreply.github.com>
Date: 星期三, 29 十二月 2021 18:08:33 +0800
Subject: [PATCH] 界面删除设备后同时删除Redis的对应条目,避免其它设备用同样IP登录时出现信息错误

---
 src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
index c9ffb35..68a772e 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java
@@ -15,6 +15,14 @@
 public interface IRedisCatchStorage {
 
     /**
+     * 璁℃暟鍣ㄣ�備负cseq杩涜璁℃暟
+     *
+     * @param method sip 鏂规硶
+     * @return
+     */
+    Long getCSEQ(String method);
+
+    /**
      * 寮�濮嬫挱鏀炬椂灏嗘祦瀛樺叆
      *
      * @param stream 娴佷俊鎭�
@@ -181,4 +189,6 @@
      * 鑾峰彇Device
      */
     Device getDevice(String deviceId);
+
+    void resetAllCSEQ();
 }

--
Gitblit v1.8.0