commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Rosenblum <>
Subject TimerMap
Date Mon, 24 Nov 2003 07:04:02 GMT
Commons Developers,

The attached class is a very simple implementation of the java.util.Map 
interface that gives each key a TTL (time to live) in the map. I've 
found this extremely useful as a backing store for certain types of 
caches (where you want to expire items based on time in cache, as 
opposed to LRU, etc..) and for tracking services that I want check the 
availability of. It's called TimerMap and takes a long TTL in the 

I'd love to donate this code to the commons, please let me know if you 
find it useful.


Joseph Rosenblum | 25th Street Networks
Easy, Reliable Web Hosting @

View raw message