use of com.hazelcast.internal.util.ResultSet in project hazelcast by hazelcast.
the class ReplicatedMapProxy method entrySet.
@Nonnull
@Override
@SuppressWarnings("unchecked")
public Set<Entry<K, V>> entrySet() {
ensureNoSplitBrain(READ);
Collection<ReplicatedRecordStore> stores = service.getAllReplicatedRecordStores(getName());
List<Entry> entries = new ArrayList<>();
for (ReplicatedRecordStore store : stores) {
entries.addAll(store.entrySet(true));
}
return (Set) new ResultSet(entries, IterationType.ENTRY);
}
Aggregations