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;
ping();
}
- public synchronized String name() {
- return this.name;
- }
-
public synchronized Duration getKeepAliveInterval() {
return this.keepAliveInterval;
}