use of com.hazelcast.map.impl.wan.MapReplicationRemove in project hazelcast by hazelcast.
the class MapEventPublisherImpl method publishWanReplicationRemove.
@Override
public void publishWanReplicationRemove(String mapName, Data key, long removeTime) {
MapReplicationRemove event = new MapReplicationRemove(mapName, key, removeTime);
publishWanReplicationEventInternal(mapName, event);
}
use of com.hazelcast.map.impl.wan.MapReplicationRemove 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