summaryrefslogtreecommitdiffstats
path: root/common/src/main
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2020-11-02 17:47:29 +0000
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2020-11-02 17:47:29 +0000
commit7fba564273a32215c58d34a747693d9df2001308 (patch)
tree47852eaca7a371cadf5c08ce93c86825fdd26dec /common/src/main
parent342703276a0b5e1a031890010dfae5b5a8ab0d66 (diff)
Revert "Fixed the lock times and populated error variable"
This reverts commit 342703276a0b5e1a031890010dfae5b5a8ab0d66. Reason for revert: so basic health check failed. Issue-ID: SO-3353 Change-Id: I28fb81c21703b8ec98906dd3bcbf74351c3e0164 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'common/src/main')
-rw-r--r--common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java b/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java
index 1a8307e8bc..c601b88ae5 100644
--- a/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java
+++ b/common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java
@@ -64,6 +64,16 @@ public class ExternalTaskServiceUtils {
return Integer.parseInt(env.getProperty("workflow.topics.maxClients", "10"));
}
+ public Long getLockDuration() {
+ Long lockDuration = Long.parseLong(env.getProperty("mso.audit.lock-time", "60000"));
+ return lockDuration;
+ }
+
+ public Long getLongLockDuration() {
+ Long lockDuration = Long.parseLong(env.getProperty("mso.long.lock-time", "600000"));
+ return lockDuration;
+ }
+
@ScheduledLogging
@Scheduled(fixedDelay = 30000)
public void checkAllClientsActive() {