summaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-20 07:35:03 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-20 07:35:03 +0000
commitf12e1d7d2675ede7e72805bd0248792833b090d6 (patch)
tree594d742ea17ec32db12bdedc0e3ae3a0825641ae /common/src
parent97718b1953962f7f4a9c4b656fc0a06ced1b667a (diff)
parent366eb368a8ccdf60c029790f237fb83c9de10168 (diff)
Merge "Added constant for maxElapsedTime"
Diffstat (limited to 'common/src')
-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;
}