Add the "timeout" Param into the Request Path
[holmes/dsa.git] / dmaap-dsa / src / main / java / org / onap / holmes / dsa / dmaappolling / Subscriber.java
index 572872b..8b7c727 100644 (file)
@@ -57,8 +57,8 @@ public class Subscriber {
     private boolean secure;
     private String topic;
     private String url;
-    private String consumerGroup = "homlesGrounp1";
-    private String consumer = "homlesGrounp1";
+    private String consumerGroup = "homlesGroup1";
+    private String consumer = "homles1";
     private String authInfo;
     private String authExpDate;
 
@@ -79,7 +79,7 @@ public class Subscriber {
     private List<String> getDMaaPData() {
         Client client = ClientBuilder.newClient(new ClientConfig());
         WebTarget webTarget = client.target(url + "/" + consumerGroup + "/" + consumer);
-        Response response = webTarget.request().get();
+        Response response = webTarget.queryParam("timeout", timeout).request().get();
         return response.readEntity(List.class);
     }