Search in sources :

Example 1 with MapReplicationRemove

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

Example 2 with MapReplicationRemove

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

Aggregations

MapReplicationRemove (com.hazelcast.map.impl.wan.MapReplicationRemove)2 MapReplicationUpdate (com.hazelcast.map.impl.wan.MapReplicationUpdate)1 IdentifiedDataSerializable (com.hazelcast.nio.serialization.IdentifiedDataSerializable)1 ParallelTest (com.hazelcast.test.annotation.ParallelTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 WanReplicationEvent (com.hazelcast.wan.WanReplicationEvent)1 Test (org.junit.Test)1