diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-10-10 15:26:08 +0200 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-10-10 15:26:08 +0200 |
commit | 805abcff704b2d2f8ae24dcebdad500cc7a658d3 (patch) | |
tree | 7aa1575f87334ef0d10a6a5f37115db96abd5b8c /container-core/src/main/java/com/yahoo/container/handler | |
parent | c93bdaf18df6ab5f1d524d9a9e63644c86ec5675 (diff) |
Take StateMonitor snapshot every 60s
Using Executors simplifies the code and fixes the following 2 small problems:
- A tiny drift of the 1m interval: It starts the next snapshot 1m + the time
before wait() return + the time until currentTimeMillis().
- May potentially (but unlikely) invoke wait() with negative (throws
exception) or 0 argument (waits forever): There is no test on the returned
long from currentTimeMillis().
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/handler')
0 files changed, 0 insertions, 0 deletions