commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Collections] Comment on LRUMap.removeLRU()
Date Fri, 15 Feb 2002 12:59:11 GMT
From: "Steve Downey" <steve.downey@netfolio.com>
> A Map.Entry is probably what it should return. Better, a cache should have
a
> hook method which is called when something is kicked out the back of the
> cache. Otherwise you stand an excellent chance of missing something being
> removed in a multithreaded environment.

Agreed.

James

> > -----Original Message-----
> > From: Morgan Delagrange [mailto:mdelagra@yahoo.com]
> > Sent: Thursday, February 14, 2002 5:56 PM
> > To: Jakarta Commons Developers
> > Subject: [Collections] Comment on LRUMap.removeLRU()
> >
> >
> > Seems like an odd method (besides the fact that it didn't
> > actually work
> > until this week ;)  It returns the key of the Object that was
> > removed from
> > the Map.  Don't you think it should return both the key and the value,
> > perhaps as an Object[] array?  After all, you have no way to
> > use that key;
> > the value is already gone.
> >
> > Technically, there's nothing we can do about it until
> > Collections 2.x, but
> > maybe in the Javadocs we should announce an intention to
> > deprecate it for a
> > more appropriate call?
> >
> > - Morgan
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Mime
View raw message