summaryrefslogtreecommitdiffstats
path: root/common/src/main/java
diff options
context:
space:
mode:
authorByung-Woo Jun <byung-woo.jun@est.tech>2020-11-02 18:31:43 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-02 18:31:43 +0000
commit5f49f69b09a9ec8d83d6cc38ee672b355de20013 (patch)
treee914deac8669737b49989d8a0ba8333a9599bb26 /common/src/main/java
parent213242ead8446a1dc415be281a82d548dd15294b (diff)
parent7fba564273a32215c58d34a747693d9df2001308 (diff)
Merge "Revert "Fixed the lock times and populated error variable""
Diffstat (limited to 'common/src/main/java')
-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() {