You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/16 07:01:01 UTC

DO NOT REPLY [Bug 27693] New: - [collections] Adding a TTL to LazyMap

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27693>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27693

[collections] Adding a TTL to LazyMap

           Summary: [collections] Adding a TTL to LazyMap
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Collections
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tobrien@discursive.com


Would it be beyond the scope of LazyMap to add a "time to live" to a LazyMap?

One could, optionally, decorate a Map with a Transformer and a long TTL value -
the LazyMap would maintain a Map of timestamps and calculate an age every time
an object was encountered by a get().  If an object's age exceeded the TTL, the
relevant Factory or Transformer would be invoked.

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