commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
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 [mailto:Yoav.Shapira@mpi.com] 
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:joey@25thstreet.net]
>Sent: Monday, November 24, 2003 2:04 AM
>To: commons-dev@jakarta.apache.org
>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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message