Package org.apache.storm.starter.tools

# Class NthLastModifiedTimeTracker

java.lang.Object
org.apache.storm.starter.tools.NthLastModifiedTimeTracker

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 Summary

  Constructors
  Constructor
  Description
  `NthLastModifiedTimeTracker(int numTimesToTrack)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `markAsModified()`
  `int`
  `secondsSinceOldestModification()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NthLastModifiedTimeTracker

    public NthLastModifiedTimeTracker(int numTimesToTrack)

- ## Method Details

  - ### secondsSinceOldestModification

    public int secondsSinceOldestModification()

  - ### markAsModified

    public void markAsModified()