com.hazelcast.map.impl
Interface MapEventPublisher


public interface MapEventPublisher

Helper methods for publishing events.

See Also:
MapEventPublisherImpl

Method Summary
 void hintMapEvent(Address caller, String mapName, EntryEventType eventType, int numberOfEntriesAffected, int partitionId)
          Only gives a hint which indicates that a map-wide operation has just been executed on this partition.
 void publishEvent(Address caller, String mapName, EntryEventType eventType, boolean synthetic, Data dataKey, Data dataOldValue, Data dataValue)
           
 void publishEvent(Address caller, String mapName, EntryEventType eventType, boolean synthetic, Data dataKey, Data dataOldValue, Data dataValue, Data dataMergingValue)
           
 void publishEvent(Address caller, String mapName, EntryEventType eventType, Data dataKey, Data dataOldValue, Data dataValue)
           
 void publishMapEvent(Address caller, String mapName, EntryEventType eventType, int numberOfEntriesAffected)
           
 void publishMapPartitionLostEvent(Address caller, String mapName, int partitionId)
           
 void publishWanReplicationRemove(String mapName, Data key, long removeTime)
           
 void publishWanReplicationUpdate(String mapName, EntryView entryView)
           
 

Method Detail

publishWanReplicationUpdate

void publishWanReplicationUpdate(String mapName,
                                 EntryView entryView)

publishWanReplicationRemove

void publishWanReplicationRemove(String mapName,
                                 Data key,
                                 long removeTime)

publishMapEvent

void publishMapEvent(Address caller,
                     String mapName,
                     EntryEventType eventType,
                     int numberOfEntriesAffected)

publishEvent

void publishEvent(Address caller,
                  String mapName,
                  EntryEventType eventType,
                  Data dataKey,
                  Data dataOldValue,
                  Data dataValue)

publishEvent

void publishEvent(Address caller,
                  String mapName,
                  EntryEventType eventType,
                  boolean synthetic,
                  Data dataKey,
                  Data dataOldValue,
                  Data dataValue)

publishEvent

void publishEvent(Address caller,
                  String mapName,
                  EntryEventType eventType,
                  boolean synthetic,
                  Data dataKey,
                  Data dataOldValue,
                  Data dataValue,
                  Data dataMergingValue)

publishMapPartitionLostEvent

void publishMapPartitionLostEvent(Address caller,
                                  String mapName,
                                  int partitionId)

hintMapEvent

void hintMapEvent(Address caller,
                  String mapName,
                  EntryEventType eventType,
                  int numberOfEntriesAffected,
                  int partitionId)
Only gives a hint which indicates that a map-wide operation has just been executed on this partition. This method should not publish an event.

Currently a map event is published by the end which calls map#clear or map#evictAll and there is not any order guarantee between events fired after map#put and map#clear, as a result of that, we may clear a put after a map#clear, to tackle with that kind of possible anomalies, this hint may be used under some conditions internally.



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.