Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Added check in PUT policy"
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
Service.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/Service.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/Service.java
index
f0863a5
..
7b2c9bd
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/Service.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/Service.java
@@
-36,14
+36,14
@@
public class Service {
this.name = name;
this.keepAliveInterval = keepAliveInterval;
this.callbackUrl = callbackUrl;
this.name = name;
this.keepAliveInterval = keepAliveInterval;
this.callbackUrl = callbackUrl;
-
ping
();
+
keepAlive
();
}
public synchronized Duration getKeepAliveInterval() {
return this.keepAliveInterval;
}
}
public synchronized Duration getKeepAliveInterval() {
return this.keepAliveInterval;
}
- public synchronized void
ping
() {
+ public synchronized void
keepAlive
() {
this.lastPing = Instant.now();
}
this.lastPing = Instant.now();
}