public class EnterpriseMapEventPublisherImpl
extends com.hazelcast.map.impl.event.MapEventPublisherImpl
MapEventPublisher helper functionality.eventService, filteringStrategy, LISTENER_WITH_PREDICATE_PRODUCES_NATURAL_EVENT_TYPES, mapServiceContext, nodeEngine, partitionService, PROP_LISTENER_WITH_PREDICATE_PRODUCES_NATURAL_EVENT_TYPES, queryCacheEventPublisher, serializationService| Constructor and Description |
|---|
EnterpriseMapEventPublisherImpl(EnterpriseMapServiceContext mapServiceContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
publishEvent(com.hazelcast.nio.Address caller,
String mapName,
com.hazelcast.core.EntryEventType eventType,
com.hazelcast.nio.serialization.Data dataKey,
Object oldValue,
Object value,
Object mergingValue)
If the in-memory format for this map is
InMemoryFormat.NATIVE it will copy the values on-heap
before publishing the event. |
void |
publishWanRemove(String mapName,
com.hazelcast.nio.serialization.Data key)
Additionally filters events and publishes only events that do not match the
MapWanEventFilter
configured for this map. |
void |
publishWanUpdate(String mapName,
com.hazelcast.core.EntryView<com.hazelcast.nio.serialization.Data,com.hazelcast.nio.serialization.Data> entryView,
boolean hasLoadProvenance)
Additionally filters events and publishes only events that do not match the
MapWanEventFilter
configured for this map. |
public EnterpriseMapEventPublisherImpl(EnterpriseMapServiceContext mapServiceContext)
public void publishEvent(com.hazelcast.nio.Address caller,
String mapName,
com.hazelcast.core.EntryEventType eventType,
com.hazelcast.nio.serialization.Data dataKey,
Object oldValue,
Object value,
Object mergingValue)
InMemoryFormat.NATIVE it will copy the values on-heap
before publishing the event.publishEvent in interface com.hazelcast.map.impl.event.MapEventPublisherpublishEvent in class com.hazelcast.map.impl.event.MapEventPublisherImplpublic void publishWanUpdate(String mapName, com.hazelcast.core.EntryView<com.hazelcast.nio.serialization.Data,com.hazelcast.nio.serialization.Data> entryView, boolean hasLoadProvenance)
MapWanEventFilter
configured for this map.publishWanUpdate in interface com.hazelcast.map.impl.event.MapEventPublisherpublishWanUpdate in class com.hazelcast.map.impl.event.MapEventPublisherImplmapName - the map nameentryView - the updated entrypublic void publishWanRemove(String mapName, com.hazelcast.nio.serialization.Data key)
MapWanEventFilter
configured for this map.publishWanRemove in interface com.hazelcast.map.impl.event.MapEventPublisherpublishWanRemove in class com.hazelcast.map.impl.event.MapEventPublisherImplmapName - the map namekey - the key of the removed entryCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.