From: Guangrong Fu Date: Fri, 27 Oct 2017 12:40:51 +0000 (+0800) Subject: Add the "timeout" Param into the Request Path X-Git-Tag: v1.0.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fdsa.git;a=commitdiff_plain;h=8b558989dd5af250972f45b5edd9f3be835f6dcd Add the "timeout" Param into the Request Path Change-Id: Ie185500761003091f6d3adad86397f1127a4432f Issue-ID: HOLMES-80 Signed-off-by: Guangrong Fu --- 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 47dfd79..8b7c727 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 @@ -79,7 +79,7 @@ public class Subscriber { private List 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); }