Recovery handling
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / Service.java
index 512d065..81ef7ff 100644 (file)
@@ -35,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;
     }