Merge "Removed the DMAAP Accepted/Rejected Call"
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / repository / Service.java
index 18a85a9..bcdc2ee 100644 (file)
@@ -23,7 +23,10 @@ package org.oransc.policyagent.repository;
 import java.time.Duration;
 import java.time.Instant;
 
+import lombok.Getter;
+
 public class Service {
+    @Getter
     private final String name;
     private final Duration keepAliveInterval;
     private Instant lastPing;
@@ -36,10 +39,6 @@ public class Service {
         ping();
     }
 
-    public synchronized String name() {
-        return this.name;
-    }
-
     public synchronized Duration getKeepAliveInterval() {
         return this.keepAliveInterval;
     }