public void publishWanReplicationRemove(String mapName, Data key, long removeTime) { MapContainer mapContainer = getMapContainer(mapName); MapReplicationRemove replicationEvent = new MapReplicationRemove(mapName, key, removeTime); mapContainer .getWanReplicationPublisher() .publishReplicationEvent(SERVICE_NAME, replicationEvent); }
public void publishWanReplicationUpdate(String mapName, EntryView entryView) { MapContainer mapContainer = getMapContainer(mapName); MapReplicationUpdate replicationEvent = new MapReplicationUpdate(mapName, mapContainer.getWanMergePolicy(), entryView); mapContainer .getWanReplicationPublisher() .publishReplicationEvent(SERVICE_NAME, replicationEvent); }