Class TimeBucketCounter

java.lang.Object
org.apache.catalina.util.TimeBucketCounter

public class TimeBucketCounter extends Object
This class maintains a thread safe hash map that has timestamp-based buckets followed by a string for a key, and a counter for a value. each time the increment() method is called it adds the key if it does not exist, increments its value and returns it. a maintenance thread cleans up keys that are prefixed by previous timestamp buckets.