use of com.hazelcast.map.impl.wan.WanMapRemoveEvent in project hazelcast by hazelcast.
the class MapEventPublisherImpl method publishWanRemove.
@Override
public void publishWanRemove(@Nonnull String mapName, @Nonnull Data key) {
if (!isOwnedPartition(key)) {
return;
}
WanMapRemoveEvent event = new WanMapRemoveEvent(mapName, key, serializationService);
publishWanEvent(mapName, event);
}
use of com.hazelcast.map.impl.wan.WanMapRemoveEvent in project hazelcast by hazelcast.
the class WanDataSerializerHookTest method testExistingTypes.
@Test
public void testExistingTypes() {
WanDataSerializerHook hook = new WanDataSerializerHook();
IdentifiedDataSerializable mapUpdate = hook.createFactory().create(WanDataSerializerHook.MAP_REPLICATION_UPDATE);
assertTrue(mapUpdate instanceof WanMapAddOrUpdateEvent);
IdentifiedDataSerializable mapRemove = hook.createFactory().create(WanDataSerializerHook.MAP_REPLICATION_REMOVE);
assertTrue(mapRemove instanceof WanMapRemoveEvent);
}
Aggregations