diff options
author | Harald Musum <musum@yahooinc.com> | 2022-06-20 10:56:01 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2022-06-20 10:56:01 +0200 |
commit | 0df7b1ff793cfecdecb1d24d498cfc88d5b060c8 (patch) | |
tree | 2569496281e0f578fb71a4b57e6a26dd88873647 /config-provisioning/src | |
parent | 8446af95f45bd256343339ed7809cc11e386b0d9 (diff) |
Add getActivatedTime() for a session
Use getActivatedTime() instead of getCreatedTime in lastDeployTime().
getCreatedTime() gives time a new session was created, not when it was
activated, which is what we usually want.
Diffstat (limited to 'config-provisioning/src')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java index 209f339f51f..1498b9871d3 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployer.java @@ -54,7 +54,7 @@ public interface Deployer { */ Optional<Deployment> deployFromLocalActive(ApplicationId application, Duration timeout, boolean bootstrap); - /** Returns the time the current local active session was created, or empty if there is no local active session */ + /** Returns the time the current local active session was activated, or empty if there is no local active session */ Optional<Instant> lastDeployTime(ApplicationId application); /** Whether the deployer is bootstrapping, some users of the deployer will want to hold off with deployments in that case. */ |