use of com.hazelcast.map.impl.wan.MapReplicationUpdate in project hazelcast by hazelcast.
the class MapEventPublisherImpl method publishWanReplicationUpdate.
@Override
public void publishWanReplicationUpdate(String mapName, EntryView entryView) {
MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);
MapReplicationUpdate replicationEvent = new MapReplicationUpdate(mapName, mapContainer.getWanMergePolicy(), entryView);
mapContainer.getWanReplicationPublisher().publishReplicationEvent(SERVICE_NAME, replicationEvent);
}
use of com.hazelcast.map.impl.wan.MapReplicationUpdate in project hazelcast by hazelcast.
the class WanDataSerializerHookTest method testExistingTypes.
@Test
public void testExistingTypes() {
WanDataSerializerHook hook = new WanDataSerializerHook();
IdentifiedDataSerializable wanReplicationEvent = hook.createFactory().create(WanDataSerializerHook.WAN_REPLICATION_EVENT);
assertTrue(wanReplicationEvent instanceof WanReplicationEvent);
IdentifiedDataSerializable mapUpdate = hook.createFactory().create(WanDataSerializerHook.MAP_REPLICATION_UPDATE);
assertTrue(mapUpdate instanceof MapReplicationUpdate);
IdentifiedDataSerializable mapRemove = hook.createFactory().create(WanDataSerializerHook.MAP_REPLICATION_REMOVE);
assertTrue(mapRemove instanceof MapReplicationRemove);
}
Aggregations