private void publishEntryEvent(Data key, Data previousValue, Data newValue) {
   final EntryEventType eventType =
       previousValue == null ? EntryEventType.ADDED : EntryEventType.UPDATED;
   final MapServiceContext mapServiceContext = mapService.getMapServiceContext();
   final MapEventPublisher mapEventPublisher = mapServiceContext.getMapEventPublisher();
   mapEventPublisher.publishEvent(
       getCallerAddress(), name, eventType, key, previousValue, newValue);
 }
Exemplo n.º 2
0
 public void afterRun() {
   final MapServiceContext mapServiceContext = mapService.getMapServiceContext();
   final MapEventPublisher mapEventPublisher = mapServiceContext.getMapEventPublisher();
   mapServiceContext.interceptAfterPut(name, dataValue);
   eventType = getEventType();
   mapEventPublisher.publishEvent(
       getCallerAddress(), name, eventType, dataKey, dataOldValue, dataValue);
   invalidateNearCaches();
   publishWANReplicationEvent(mapServiceContext, mapEventPublisher);
   evict(false);
 }