guava - MapMaker and ReferenceMap - Google Collections -


i understand referencemap alpha version of google collections has been replaced mapmaker.

i used referencemap constructor backing map:

public referencemap(referencetype keyreferencetype, referencetype        valuereferencetype, concurrentmap<object, object> backingmap) {      this(keyreferencetype, valuereferencetype, backingmap, true); }  

my backing map concurrentmap ability collect statistics (hit/miss etc).

what can use in place of above referencemap constructor?

thanks, grace

we not able continue offer ability pass own backing map. mapmaker works using customized map implementation of own.

but, gather hit/miss statistics, can wrap returned concurrentmap in forwardingconcurrentmap count get invocations (using atomiclong), , have function count misses in similar way. (hits being, of course, equal request minus misses.)


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -