I want to be able to age objects in a Collection.
For example I could put strings in a HashSet.
So I can accomplish this by keeping track of each String and then running a house cleaning Thread and purging String from the Collection if it is older than a certain time quantum.
However I am looking for:
Thanks.
Sounds like you need a cache. Either try CacheBuilder
(see Caches Explained) from Guava or EhCache.