commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject RE: TimerMap
Date Mon, 24 Nov 2003 13:58:11 GMT
A good idea!  I would recommend making this a decorator as opposed to a
full-blown implementation.  I do not have your original source here, so I
don't know if that's what you did or not.  If you made it a decorator, you
could nest maps to combine different implementation benefits.  For example,
I could create a cache that is both TTL and LRU based.  

-----Original Message-----
From: Shapira, Yoav [] 
Sent: Monday, November 24, 2003 8:44 AM
To: Jakarta Commons Developers List
Subject: RE: TimerMap

I like it: simple, practical idea.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Joseph Rosenblum []
>Sent: Monday, November 24, 2003 2:04 AM
>Subject: TimerMap
>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 @

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message