diff options
author | Byung-Woo Jun <byung-woo.jun@est.tech> | 2020-11-02 18:31:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-02 18:31:43 +0000 |
commit | 5f49f69b09a9ec8d83d6cc38ee672b355de20013 (patch) | |
tree | e914deac8669737b49989d8a0ba8333a9599bb26 /common | |
parent | 213242ead8446a1dc415be281a82d548dd15294b (diff) | |
parent | 7fba564273a32215c58d34a747693d9df2001308 (diff) |
Merge "Revert "Fixed the lock times and populated error variable""
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/onap/so/utils/ExternalTaskServiceUtils.java | 10 |
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() { |