commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27693] New: - [collections] Adding a TTL to LazyMap
Date Tue, 16 Mar 2004 06:01:01 GMT
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


Mime
View raw message