public interface MapEventPublisher
MapEventPublisherImpl
Modifier and Type | Method and Description |
---|---|
void |
addEventToQueryCache(Object eventData)
Notifies
QueryCache subscribers directly, without publishing an event to
other map listeners. |
boolean |
hasEventListener(String mapName)
Returns
true if there is at least one listener registered for the specified mapName . |
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,
Data dataKey,
Object dataOldValue,
Object dataValue)
Publish an event to the event subsystem.
|
void |
publishEvent(Address caller,
String mapName,
EntryEventType eventType,
Data dataKey,
Object dataOldValue,
Object dataValue,
Object dataMergingValue)
Publish an event to the event subsystem.
|
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)
Notifies the WAN subsystem of a map entry removal on a replica owner.
|
void |
publishWanReplicationRemoveBackup(String mapName,
Data key,
long removeTime)
Notifies the WAN subsystem of a map entry removal on a backup replica.
|
void |
publishWanReplicationUpdate(String mapName,
EntryView<Data,Data> entryView)
Notifies the WAN subsystem of a map update on a replica owner.
|
void |
publishWanReplicationUpdateBackup(String mapName,
EntryView entryView)
Notifies the WAN subsystem of a map update on a backup replica.
|
void publishWanReplicationUpdate(String mapName, EntryView<Data,Data> entryView)
mapName
- the map nameentryView
- the updated entryvoid publishWanReplicationRemove(String mapName, Data key, long removeTime)
mapName
- the map namekey
- the key of the removed entryremoveTime
- the clock time for the remove eventClock.currentTimeMillis()
void publishWanReplicationUpdateBackup(String mapName, EntryView entryView)
mapName
- the map nameentryView
- the updated entryvoid publishWanReplicationRemoveBackup(String mapName, Data key, long removeTime)
mapName
- the map namekey
- the key of the removed entryremoveTime
- the clock time for the remove eventClock.currentTimeMillis()
void publishMapEvent(Address caller, String mapName, EntryEventType eventType, int numberOfEntriesAffected)
void publishEvent(Address caller, String mapName, EntryEventType eventType, Data dataKey, Object dataOldValue, Object dataValue)
caller
- the address of the caller that caused the eventmapName
- the map nameeventType
- the event typedataKey
- the key of the event map entrydataOldValue
- the old value of the map entrydataValue
- the new value of the map entryvoid publishEvent(Address caller, String mapName, EntryEventType eventType, Data dataKey, Object dataOldValue, Object dataValue, Object dataMergingValue)
caller
- the address of the caller that caused the eventmapName
- the map nameeventType
- the event typedataKey
- the key of the event map entrydataOldValue
- the old value of the map entrydataValue
- the new value of the map entrydataMergingValue
- the value used when performing a merge operation in case of a EntryEventType.MERGED
event.
This value together with the old value produced the new value.void publishMapPartitionLostEvent(Address caller, String mapName, int partitionId)
void hintMapEvent(Address caller, String mapName, EntryEventType eventType, int numberOfEntriesAffected, int partitionId)
void addEventToQueryCache(Object eventData)
QueryCache
subscribers directly, without publishing an event to
other map listeners. This is necessary in certain cases, such as when loading entries into a map.eventData
- the event to publish to query cachesboolean hasEventListener(String mapName)
true
if there is at least one listener registered for the specified mapName
.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.