Search in sources :

Example 1 with WanMapRemoveEvent

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);
}
Also used : WanMapRemoveEvent(com.hazelcast.map.impl.wan.WanMapRemoveEvent)

Example 2 with WanMapRemoveEvent

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);
}
Also used : IdentifiedDataSerializable(com.hazelcast.nio.serialization.IdentifiedDataSerializable) WanMapAddOrUpdateEvent(com.hazelcast.map.impl.wan.WanMapAddOrUpdateEvent) WanMapRemoveEvent(com.hazelcast.map.impl.wan.WanMapRemoveEvent) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

WanMapRemoveEvent (com.hazelcast.map.impl.wan.WanMapRemoveEvent)2 WanMapAddOrUpdateEvent (com.hazelcast.map.impl.wan.WanMapAddOrUpdateEvent)1 IdentifiedDataSerializable (com.hazelcast.nio.serialization.IdentifiedDataSerializable)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1