Is it possible to get list of Local Map Entries in Hazelcast ?
There is just a method that returns status of local entries,but not their actual values.
IMap map = Hazelcast.getMap("test");
for (int i = 0; i < 100; i++) {
map.put(i, i);
map.get(i);
}
LocalMapStats stats = map.getLocalMapStats();
System.err.println(stats.getHits());
System.err.println(stats.getOwnedEntryCount());
Thanks.
Yes, you can get localKeySet. Please look following: http://docs.hazelcast.org/docs/latest/javadoc/com/hazelcast/core/IMap.html#localKeySet()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.