@Override
public void run()
throws Exception {
Member localMember = getNodeEngine().getLocalMember();
ReplicatedMapService replicatedMapService = getService();
for (MemberMapPair replicatedMap : replicatedMaps) {
String mapName = replicatedMap.getName();
if (localMember.equals(replicatedMap.getMember())) {
AbstractReplicatedRecordStore recordStorage = (AbstractReplicatedRecordStore) replicatedMapService
.getReplicatedRecordStore(mapName, false);
if (recordStorage != null && recordStorage.isLoaded()) {
ReplicationPublisher replicationPublisher = recordStorage.getReplicationPublisher();
replicationPublisher.queuePreProvision(getCallerAddress(), chunkSize);