allalizaki / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
1 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

Original comment by kevinb@google.com on 30 Jul 2010 at 3:50

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 2 Aug 2010 at 10:05

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:10