From db2ccfedfa17eb3cb5ca73ac3b6bc4b5a05d4148 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 19 四月 2023 11:09:26 +0800 Subject: [PATCH] 优化notify性能,增加notify超出处理能力时直接回复错误码,不做处理。 --- src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java b/src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java index b413d88..31fe7a4 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java @@ -50,11 +50,19 @@ private Boolean sipLog = Boolean.FALSE; private Boolean sendToPlatformsWhenIdLost = Boolean.FALSE; + private Boolean refuseChannelStatusChannelFormNotify = Boolean.FALSE; + private String serverId = "000000"; + + private String recordPath = null; private String thirdPartyGBIdReg = "[\\s\\S]*"; private List<String> interfaceAuthenticationExcludes = new ArrayList<>(); + + private List<String> allowedOrigins = new ArrayList<>(); + + private int maxNotifyCountQueue = 10000; public Boolean getSavePositionHistory() { return savePositionHistory; @@ -220,6 +228,14 @@ this.sipLog = sipLog; } + public List<String> getAllowedOrigins() { + return allowedOrigins; + } + + public void setAllowedOrigins(List<String> allowedOrigins) { + this.allowedOrigins = allowedOrigins; + } + public Boolean getSendToPlatformsWhenIdLost() { return sendToPlatformsWhenIdLost; } @@ -227,4 +243,28 @@ public void setSendToPlatformsWhenIdLost(Boolean sendToPlatformsWhenIdLost) { this.sendToPlatformsWhenIdLost = sendToPlatformsWhenIdLost; } + + public Boolean getRefuseChannelStatusChannelFormNotify() { + return refuseChannelStatusChannelFormNotify; + } + + public void setRefuseChannelStatusChannelFormNotify(Boolean refuseChannelStatusChannelFormNotify) { + this.refuseChannelStatusChannelFormNotify = refuseChannelStatusChannelFormNotify; + } + + public String getRecordPath() { + return recordPath; + } + + public void setRecordPath(String recordPath) { + this.recordPath = recordPath; + } + + public int getMaxNotifyCountQueue() { + return maxNotifyCountQueue; + } + + public void setMaxNotifyCountQueue(int maxNotifyCountQueue) { + this.maxNotifyCountQueue = maxNotifyCountQueue; + } } -- Gitblit v1.8.0