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 [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2003 8:44 AM
To: Jakarta Commons Developers List
Subject: RE: TimerMap



Howdy,
I like it: simple, practical idea.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Joseph Rosenblum [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 24, 2003 2:04 AM
>To: [EMAIL PROTECTED]
>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 
>constructor.
>
>I'd love to donate this code to the commons, please let me know if you 
>find it useful.
>
>-Joe
>
>Joseph Rosenblum | 25th Street Networks
>Easy, Reliable Web Hosting @ http://www.25thstreet.net/




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to