We have a Scala server that receives a node tree using protocol buffers via a socket, and we need to attach additional data to each node.
In one streaming context, and when the node tree and the data associated with it are deleted at the same time (due to exit from the scope), is there any reason to use Google Guava MapMaker with weak keys () through the use of WeakHashMap? It seems that with MapMaker it pays for synchronized access, which in this case is not needed.
As an aside, it would be useful if MapMaker had to provide access to equivalence settings so that you could choose link equality, but not care about weak or soft links.
java guava java.util.concurrent weakhashmap
Blair zajac
source share