aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-28 16:17:47 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-04-05 17:01:53 +0200
commit598c2469a004c50a1b29882e02e2fab7a8407d8b (patch)
tree3533fe0fa5b25e5e66b7d4294e734d40da316520 /src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
parent19f034b2554895285f12979b0f36c1629f9af984 (diff)
Make rest-client request timeout in model-loader configurable
- this reduces the test execution time, when test cases run into timouts Issue-ID: AAI-3703 Change-Id: Ie683f55e5ce8d59b10d2788aea6933854dcb7e99 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java')
-rw-r--r--src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java b/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
index 88967b2..c76996f 100644
--- a/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
+++ b/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
@@ -130,6 +130,8 @@ public class HttpsBabelServiceClient implements BabelServiceClient {
}
client = Client.create(new DefaultClientConfig());
+ client.setConnectTimeout(config.getClientConnectTimeoutMs());
+ client.setReadTimeout(config.getClientReadTimeoutMs());
logger.debug(ModelLoaderMsgs.DISTRIBUTION_EVENT, "Jersey client created");
}