Added constant for maxElapsedTime 40/85840/2
authorSindhuri.A <arcot.sindhuri@huawei.com>
Fri, 19 Apr 2019 17:45:43 +0000 (23:15 +0530)
committerSeshu Kumar M <seshu.kumar.m@huawei.com>
Sat, 20 Apr 2019 06:36:22 +0000 (06:36 +0000)
Added constant for maxElapsedTime DmaapConsumer.java

Issue-ID: SO-1490

Change-Id: Ifed2ea57eb4cfb42fc7a34ebf7bfd2c8954b05b0
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
common/src/main/java/org/onap/so/client/dmaap/DmaapConsumer.java

index 3dd0c75..4de546e 100644 (file)
@@ -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;
     }