Code Review
/
aai
/
model-loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Make rest-client request timeout in model-loader configurable
[aai/model-loader.git]
/
src
/
main
/
java
/
org
/
onap
/
aai
/
modelloader
/
restclient
/
HttpsBabelServiceClient.java
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
(file)
--- 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 = Client.create(new DefaultClientConfig());
+ client.setConnectTimeout(config.getClientConnectTimeoutMs());
+ client.setReadTimeout(config.getClientReadTimeoutMs());
logger.debug(ModelLoaderMsgs.DISTRIBUTION_EVENT, "Jersey client created");
}
logger.debug(ModelLoaderMsgs.DISTRIBUTION_EVENT, "Jersey client created");
}