Java Ninja Chronicles By Norris Shelton

Things I learned in the pursuit of code

I needed to iterate over the values contained in a replicatedMap. I thought it would be as simple as:

hz.<Long, GameInfo>replicatedMap(DO.DESK_MAP, DO.DESK_MAP).values();

It would show that there were 2006 entries, but I couldn’t touch them.

I later stumbled upon the following:


This gave me a Collection of the values that I could iterate over.

February 26th, 2015

Posted In: Hazelcast, Java, java ninja, Javaninja

Tags: , , , ,


LinkedIn Auto Publish Powered By :