Merge "Change docker image name"
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / Service.java
index 6a26b98..81ef7ff 100644 (file)
@@ -17,6 +17,7 @@
  * limitations under the License.
  * ========================LICENSE_END===================================
  */
+
 package org.oransc.policyagent.repository;
 
 import java.time.Duration;
@@ -34,11 +35,11 @@ public class Service {
         ping();
     }
 
-    public String getName() {
+    public synchronized String getName() {
         return this.name;
     }
 
-    public Duration getKeepAliveInterval() {
+    public synchronized Duration getKeepAliveInterval() {
         return this.keepAliveInterval;
     }