summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2019-02-19 10:49:19 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2019-02-19 10:49:19 +0800
commite2f4343a4a4b9fb84b46857e0283084d5de5da77 (patch)
treec915d87a1aeadf77efcf56c6d178e6811d67edde
parentc4fdede954fa72ba55b6afe8da86a8d55c73a216 (diff)
Fixed a DMaaP Request Problem
Change-Id: I306fc87c86303040bc3b4cf8c23acbf3938da944 Issue-ID: HOLMES-198 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java
index 16ddc15..b67fc8f 100644
--- a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java
+++ b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/Subscriber.java
@@ -57,7 +57,7 @@ public class Subscriber {
* The number of milliseconds to poll interval time. This should normally be used, and set at
* 15000 or higher.
*/
- private int period = 15000;
+ private int period = timeout;
private boolean secure;
private String topic;
@@ -85,7 +85,7 @@ public class Subscriber {
private List<String> getDMaaPData() throws Exception {
String response;
CloseableHttpClient closeableHttpClient = null;
- HttpGet httpGet = new HttpGet(url + "/" + consumerGroup + "/" + consumer);
+ HttpGet httpGet = new HttpGet(url + "/" + consumerGroup + "/" + consumer + "?timeout=" + period);
try {
closeableHttpClient = HttpsUtils.getHttpClient(timeout);
HttpResponse httpResponse = HttpsUtils