diff options
author | Steve Smokowski <ss835w@att.com> | 2021-02-02 10:20:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-02-02 10:20:48 +0000 |
commit | be3f1c8d747ab7dad3d6c76dc4c9034e83b84635 (patch) | |
tree | 1b59f4d6d34ac7edc2c00ca28d6e8c00a9c298ad /so-etsi-nfvo | |
parent | d6194580f506ace2bf289eab17133c10ef912eed (diff) | |
parent | b8b0464aa8a05a345115264084b08229f35c8413 (diff) |
Merge "set connection timeout as well as read timeout"
Diffstat (limited to 'so-etsi-nfvo')
-rw-r--r-- | so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/extclients/aai/AaiPropertiesImpl.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/extclients/aai/AaiPropertiesImpl.java b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/extclients/aai/AaiPropertiesImpl.java index 0aa14c711f..25a43a86d0 100644 --- a/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/extclients/aai/AaiPropertiesImpl.java +++ b/so-etsi-nfvo/so-etsi-nfvo-ns-lcm/so-etsi-nfvo-ns-lcm-bpmn-flows/src/main/java/org/onap/so/etsi/nfvo/ns/lcm/bpmn/flows/extclients/aai/AaiPropertiesImpl.java @@ -35,6 +35,7 @@ public class AaiPropertiesImpl implements AAIProperties { private final String encryptionKey; private final String aaiVersion; private final Long readTimeout; + private final Long connectionTimeout; private final boolean enableCaching; private final Long cacheMaxAge; @@ -44,7 +45,8 @@ public class AaiPropertiesImpl implements AAIProperties { this.encryptedBasicAuth = context.getEnvironment().getProperty("aai.auth"); this.encryptionKey = context.getEnvironment().getProperty("mso.key"); this.aaiVersion = context.getEnvironment().getProperty("aai.version"); - this.readTimeout = context.getEnvironment().getProperty("aai.readTimeout", Long.class, new Long(60000)); + this.readTimeout = context.getEnvironment().getProperty("aai.readTimeout", Long.class, 60000L); + this.connectionTimeout = context.getEnvironment().getProperty("aai.connectionTimeout", Long.class, 60000L); this.enableCaching = context.getEnvironment().getProperty("aai.caching.enabled", Boolean.class, false); this.cacheMaxAge = context.getEnvironment().getProperty("aai.caching.maxAge", Long.class, 60000L); } @@ -86,6 +88,11 @@ public class AaiPropertiesImpl implements AAIProperties { } @Override + public Long getConnectionTimeout() { + return this.connectionTimeout; + } + + @Override public boolean isCachingEnabled() { return this.enableCaching; } |