sonny8441 / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

MapMaker - removal notification #242

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently MapMaker "silently" removes entries due to either expiration or 
weak/soft reference 
collection. It would be helpful to have a removal notification mechanism 
whereby users could 
perform some type of action when removals occurred.

Original issue reported on code.google.com by yrfselrahc@gmail.com on 18 Sep 2009 at 1:54

GoogleCodeExporter commented 9 years ago
Should this listener be invoked upon manual remove()s too?

Original comment by kevin...@gmail.com on 18 Sep 2009 at 1:56

GoogleCodeExporter commented 9 years ago
I do think that would be the most intuitive. If an entry is every removed then 
the notification occurs. This will 
also cover automatic eviction in bounded-size maps.

Original comment by yrfselrahc@gmail.com on 18 Sep 2009 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 18 Sep 2009 at 5:04

GoogleCodeExporter commented 9 years ago
I can second that listener should be invoked upon manual removes()s. 

If somebody ends up in a situation where such a call is undesired, there are 
options
how to make this call a no-op (e.g. flag inside value).

Original comment by min...@gmail.com on 29 Oct 2009 at 4:54

GoogleCodeExporter commented 9 years ago
This issue has been moved to the Guava project (keeping the same id number). 
Simply replace 'google-collections' with 'guava-libraries' in your address 
bar and it should take you there.

Original comment by kevinb@google.com on 5 Jan 2010 at 11:09