summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSindhuri.A <arcot.sindhuri@huawei.com>2019-04-19 23:15:43 +0530
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-20 06:36:22 +0000
commit366eb368a8ccdf60c029790f237fb83c9de10168 (patch)
tree81be1c3f5b63a65fcc99251f200ac37d2909e9ea
parentba5d6d7ebb12f21011611d081868e41157b583d0 (diff)
Added constant for maxElapsedTime
Added constant for maxElapsedTime DmaapConsumer.java Issue-ID: SO-1490 Change-Id: Ifed2ea57eb4cfb42fc7a34ebf7bfd2c8954b05b0 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
-rw-r--r--common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java b/common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java
index 3dd0c751e3..4de546e9da 100644
--- a/common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java
+++ b/common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java
@@ -28,6 +28,7 @@ import org.onap.so.client.dmaap.exceptions.ExceededMaximumPollingTime;
import org.onap.so.client.dmaap.rest.RestConsumer;
public abstract class DmaapConsumer extends DmaapClient {
+ static final int MAX_ELAPSED_TIME = 180000;
public DmaapConsumer() throws IOException {
super("dmaap/default-consumer.properties");
@@ -125,7 +126,7 @@ public abstract class DmaapConsumer extends DmaapClient {
* time in milliseconds
*/
public int getMaximumElapsedTime() {
- return 180000;
+ return MAX_ELAPSED_TIME;
}