public class NthLastModifiedTimeTracker extends Object
This class tracks the time-since-last-modify of a “thing” in a rolling fashion.
For example, create a 5-slot tracker to track the five most recent time-since-last-modify. You must manually “mark” that the “something” that you want to track – in terms of modification times – has just been modified.Constructor and Description |
---|
NthLastModifiedTimeTracker(int numTimesToTrack) |
Modifier and Type | Method and Description |
---|---|
void |
markAsModified() |
int |
secondsSinceOldestModification() |
Copyright © 2022 The Apache Software Foundation. All rights reserved.