/** * * @param recipients the set of members on which the partitioned region should be destoryed * @param region the partitioned region * @param processor the processor that the reply will use to notify of the reply. * @see #send(Set, PartitionedRegion, RegionEventImpl, int[]) */ private DestroyPartitionedRegionMessage(Set recipients, PartitionedRegion region, ReplyProcessor21 processor, final RegionEventImpl event, int serials[]) { super(recipients, region.getPRId(), processor); this.cbArg = event.getRawCallbackArgument(); this.op = event.getOperation(); this.prSerial = region.getSerialNumber(); Assert.assertTrue(this.prSerial != DistributionAdvisor.ILLEGAL_SERIAL); this.bucketSerials = serials; }
/** * @since GemFire 5.7 */ private void serverRegionClear(RegionEventImpl regionEvent) { if (regionEvent.getOperation().isDistributed()) { ServerRegionProxy mySRP = getServerProxy(); if (mySRP != null) { EventID eventId = regionEvent.getEventId(); Object callbackArg = regionEvent.getRawCallbackArgument(); mySRP.clear(eventId, callbackArg); } } }
/** * @since GemFire 5.7 */ void serverRegionDestroy(RegionEventImpl regionEvent) { if (regionEvent.getOperation().isDistributed()) { ServerRegionProxy mySRP = getServerProxy(); if (mySRP != null) { EventID eventId = regionEvent.getEventId(); Object callbackArg = regionEvent.getRawCallbackArgument(); mySRP.destroyRegion(eventId, callbackArg); } } }
} else { RegionEventImpl regionEvent = (RegionEventImpl) event; callbackArgument = regionEvent.getRawCallbackArgument(); eventIdentifier = regionEvent.getEventId(); if (event instanceof ClientRegionEventImpl) {
protected void initMessage(CacheOperationMessage msg, DirectReplyProcessor p) { msg.regionPath = getRegion().getFullPath(); msg.processorId = p == null ? 0 : p.getProcessorId(); msg.processor = p; if (this.event.getOperation().isEntry()) { EntryEventImpl entryEvent = getEvent(); msg.callbackArg = entryEvent.getRawCallbackArgument(); msg.possibleDuplicate = entryEvent.isPossibleDuplicate(); VersionTag tag = entryEvent.getVersionTag(); msg.setInhibitNotificationsBit(entryEvent.inhibitAllNotifications()); if (tag != null && tag.hasValidVersion()) { msg.setVersionTag(tag); } } else { msg.callbackArg = ((RegionEventImpl) this.event).getRawCallbackArgument(); } msg.op = this.event.getOperation(); msg.owner = this; msg.regionAllowsConflation = getRegion().getEnableAsyncConflation(); }