I was looking at the code for the integration of MongoDB with hazelcast on their github page.
The MongoMapStore implements a loadAll method which takes a Java Collection as its parameter. Later in the ReadWriteThroughCache.java code supplements.loadAll is called where supplements is an imap from what Ive understood so far this executes the loadAll method in MongoMapStore.java but where are we passing the Collection keys parameter. The mongoCollection is instantiated but how do we determine keys in that example
MapStore#loadAll(keys)
is called internally when Hazelcast maps are initialized. You do not need to provide any parameters, it is the set of distributed keys to all members in batches. Please see the details & steps of map initialization with persistence enabled here: http://docs.hazelcast.org/docs/latest/manual/html-single/index.html#initializing-map-on-startup