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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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